- ::unsweetenAttributes no longer clobbers non-FILTER args.
This commit is contained in:
Paul Beckingham 2014-10-19 18:18:48 -04:00
parent f862ad15e6
commit 720cc57192

View file

@ -549,6 +549,8 @@ void CLI::unsweetenAttributes ()
std::vector <A> reconstructed;
std::vector <A>::iterator a;
for (a = _args.begin (); a != _args.end (); ++a)
{
if (a->hasTag ("FILTER"))
{
// Look for a valid attribute name.
bool found = false;
@ -624,6 +626,9 @@ void CLI::unsweetenAttributes ()
if (!found)
reconstructed.push_back (*a);
}
else
reconstructed.push_back (*a);
}
_args = reconstructed;
}