]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
Replace Q_WS_WIN with appropriate guards to account for Qt5.
[lyx.git] / src / lyxfind.cpp
index 0c10e1980d840128db3ff15fb6a0eeba69f47080..6b9556e8790e92fe3d2a4f87202cfce0d99927c7 100644 (file)
@@ -400,7 +400,7 @@ bool findChange(DocIterator & cur, bool next)
                        if (!next)
                                // if we search backwards, take a step forward
                                // to correctly set the anchor
-                               cur.forwardPos();
+                               cur.top().forwardPos();
                        return true;
                }