diff --git a/qrenderdoc/Windows/EventBrowser.cpp b/qrenderdoc/Windows/EventBrowser.cpp index aa0f639e5..505e7d260 100644 --- a/qrenderdoc/Windows/EventBrowser.cpp +++ b/qrenderdoc/Windows/EventBrowser.cpp @@ -1869,10 +1869,15 @@ Available numeric properties. Compare with $event(prop > 100) or = operators.size()) { @@ -2269,7 +2274,7 @@ and these can be queried with a filter such as $action(flags & Clear|Clear if(tokens.size() < 3 || (tokens[1].text != lit("&") && tokens[1].text != lit("="))) { trace.position = tokens[0].position; - trace.length = (tokens[1].position + tokens[1].length) - trace.position + 1; + trace.length = (tokens.back().position + tokens.back().length) - trace.position + 1; trace.setError(tr("Expected $action(flags & ...)", "EventFilterModel")); return NULL; }