- ::unsweetenPatterns no longer clobbers non-FILTER args.
This commit is contained in:
Paul Beckingham
2014-10-19 18:19:27 -04:00
parent f809f2d819
commit 83ab844ba4

View File

@@ -812,6 +812,8 @@ void CLI::unsweetenPatterns ()
std::vector <A> reconstructed;
std::vector <A>::iterator a;
for (a = _args.begin (); a != _args.end (); ++a)
{
if (a->hasTag ("FILTER"))
{
Nibbler n (a->attribute ("raw"));
std::string pattern;
@@ -838,6 +840,9 @@ void CLI::unsweetenPatterns ()
else
reconstructed.push_back (*a);
}
else
reconstructed.push_back (*a);
}
_args = reconstructed;
}