# HG changeset patch # User Torsten # Date 1382473639 -7200 # Node ID 76d6a523aae6827a84c442fcf3eb0e684bdb54e3 # Parent 38e9dee9c627f7cf2efb439c757742faeba0ed1c fix display of global search in doc browser (bug #40348) * parser.cc(global_search): fix offset for second and further searches diff -r 38e9dee9c627 -r 76d6a523aae6 libgui/src/qtinfo/parser.cc --- a/libgui/src/qtinfo/parser.cc Tue Oct 22 12:37:20 2013 -0700 +++ b/libgui/src/qtinfo/parser.cc Tue Oct 22 22:27:19 2013 +0200 @@ -596,6 +596,7 @@ line_start = node_text.lastIndexOf ("\n", pos); line_end = node_text.indexOf ("\n", pos); QString line = node_text.mid (line_start, line_end - line_start).trimmed (); + pos += re.matchedLength (); if (founds == 0) { @@ -612,8 +613,6 @@ results.append ("
\n"); founds++; - - pos += re.matchedLength (); } } io->close ();