]> git.lyx.org Git - features.git/commitdiff
* GuiErrorList.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 20 Jul 2008 17:05:58 +0000 (17:05 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 20 Jul 2008 17:05:58 +0000 (17:05 +0000)
- fix display of error description for preamble errors (bug 5007).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25728 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiErrorList.cpp

index e3912f5bfbe763789c01495bcdbfdd4f5ffec3d8..eae20d761e1a5f2ad732d4df4bf362aa9f44a6bf 100644 (file)
@@ -60,8 +60,11 @@ void GuiErrorList::showEvent(QShowEvent * e)
 void GuiErrorList::select()
 {
        int const item = errorsLW->row(errorsLW->currentItem());
-       if (goTo(item))
-        descriptionTB->setPlainText(toqstr(errorList()[item].description));
+       if (item == -1)
+               return;
+       goTo(item);
+       descriptionTB->setPlainText(
+               toqstr(errorList()[item].description));
 }