- Fixed a bug so that the report filter order is preserved, to enable an
  optimization that was being skipped.
This commit is contained in:
Paul Beckingham 2013-04-02 17:41:13 -04:00
parent f420fb434e
commit 2b8cb3e251
2 changed files with 5 additions and 2 deletions

View file

@ -136,6 +136,8 @@ Bugs
(thanks to Rainer Müller). (thanks to Rainer Müller).
+ Fixed hook tests to work on released code (thanks to Jakub Wilk). + Fixed hook tests to work on released code (thanks to Jakub Wilk).
+ Fixed bug where arguments passed to 'task execute' needed double escaping. + Fixed bug where arguments passed to 'task execute' needed double escaping.
+ Fixed a bug so that the report filter order is preserved, to enable an
optimization that was being skipped.
------ old releases ------------------------------ ------ old releases ------------------------------

View file

@ -86,11 +86,12 @@ int CmdCustom::execute (std::string& output)
// Prepend the argument list with those from the report filter. // Prepend the argument list with those from the report filter.
std::vector <std::string> filterArgs; std::vector <std::string> filterArgs;
splitq (filterArgs, reportFilter, ' '); splitq (filterArgs, reportFilter, ' ');
std::vector <std::string>::iterator arg; std::vector <std::string>::reverse_iterator arg;
for (arg = filterArgs.begin (); arg != filterArgs.end (); ++ arg) for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
context.a3.capture_first (*arg); context.a3.capture_first (*arg);
context.a3.categorize (); context.a3.categorize ();
context.a3.dump ("A3::categorize");
// Load the data. // Load the data.
handleRecurrence (); handleRecurrence ();