diff --git a/src/frontends/qt4/qt_helpers.cpp b/src/frontends/qt4/qt_helpers.cpp index a2c72172e1..2ad96d9295 100644 --- a/src/frontends/qt4/qt_helpers.cpp +++ b/src/frontends/qt4/qt_helpers.cpp @@ -549,7 +549,7 @@ FileFilterList::FileFilterList(docstring const & qt_style_filter) // Everything from the start of the input to // the start of the match. - parse_filter(string(what[-1].first, what[-1].second)); + parse_filter(string(it, what[0].first)); // Increment the iterator to the end of the match. it += distance(it, what[0].second);