]> git.lyx.org Git - features.git/blobdiff - src/text2.C
Finally fixed the problems with clicking on insets
[features.git] / src / text2.C
index a24bd80ee99eac758964de36ff386a19899c916f..f69ff60516d24b28dade7b89a71e1151ed9dd4ce 100644 (file)
@@ -833,8 +833,8 @@ void LyXText::RedoParagraphs(LyXCursor const & cur,
                first_phys_par = tmprow->par->FirstPhysicalPar();
                // find the first row of the paragraph
                if (first_phys_par != tmprow->par)
-                       while (tmprow->previous
-                              && tmprow->previous->par != first_phys_par) {
+                       while (tmprow->previous &&
+                              (tmprow->previous->par != first_phys_par)) {
                                tmprow = tmprow->previous;
                                y -= tmprow->height;
                        }