* GuiErrorList.cpp:

- 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
This commit is contained in:
Jürgen Spitzmüller 2008-07-20 17:05:58 +00:00
parent 38af9ccac5
commit 855c185881

View 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));
}