From 8f60a106f7465dabc9323ec58d17bc4d89eb5bb4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 9 Nov 2014 11:15:20 -0500 Subject: [PATCH] CLI - ::findOperator now only reports changes if the tag being added was not already there. --- src/CLI.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CLI.cpp b/src/CLI.cpp index 0b9db2a6f..1a9917b61 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -1672,10 +1672,11 @@ void CLI::findOperators () for (a = _args.begin (); a != _args.end (); ++a) if (a->hasTag ("FILTER")) if (std::find (options.begin (), options.end (), a->attribute ("raw")) != options.end ()) - { - a->tag ("OP"); - changes = true; - } + if (! a->hasTag ("OP")) + { + a->tag ("OP"); + changes = true; + } if (changes && context.config.getInteger ("debug.parser") >= 3)