From f31641313987769cdf71753d76586434798d938c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 8 Jun 2014 13:10:20 -0400 Subject: [PATCH] CmdCalc - The 'calc' command (and only the 'calc' command) propagates the rc.debug setting to Eval. This provides the means to debug expression problems. --- src/commands/CmdCalc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/CmdCalc.cpp b/src/commands/CmdCalc.cpp index 94ab4c353..4810d3f09 100644 --- a/src/commands/CmdCalc.cpp +++ b/src/commands/CmdCalc.cpp @@ -59,6 +59,7 @@ int CmdCalc::execute (std::string& output) e.addSource (namedDates); e.addSource (domSource); e.ambiguity (false); // TODO Could/should be configurable. + e.debug (context.config.getBoolean ("debug")); // Compile all the args into one expression. std::string expression;