Bug
- Fixed 'limit:N' bug, whereby when a report specifies a limit, and the user overrides it, there are potentially two limit arguments, in which case the last one, not the first one is needed.
This commit is contained in:
@@ -673,8 +673,8 @@ bool Arguments::find_command (std::string& command)
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Arguments::find_limit ()
|
||||
{
|
||||
std::vector <std::pair <std::string, std::string> >::iterator arg;
|
||||
for (arg = this->begin (); arg != this->end (); ++arg)
|
||||
std::vector <std::pair <std::string, std::string> >::reverse_iterator arg;
|
||||
for (arg = this->rbegin (); arg != this->rend (); ++arg)
|
||||
if (arg->first.find ("limit:") != std::string::npos)
|
||||
return arg->first.substr (6);
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user