]> git.lyx.org Git - lyx.git/commitdiff
Please Abdel
authorEnrico Forestieri <forenr@lyx.org>
Mon, 28 Feb 2011 15:45:53 +0000 (15:45 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 28 Feb 2011 15:45:53 +0000 (15:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37802 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiErrorList.cpp

index 212cd39af519003525ba04b5872cc4683a3080c0..b3ab09f79f48662d6d28650f5eedad8ed836bae7 100644 (file)
@@ -176,8 +176,8 @@ bool GuiErrorList::goTo(int item)
        while (dit.inset().lyxCode() == INFO_CODE)
                dit.forwardPos();
 
-       // If this paragraph has zero size, highlight the previous one
-       while (dit.paragraph().size() == 0)
+       // If this paragraph is empty, highlight the previous one
+       while (dit.paragraph().empty())
                dit.backwardPos();
 
        // Now make the selection.