[EMAIL PROTECTED] schrieb:
Author: kuemmel
Date: Sat Dec 30 15:50:45 2006
New Revision: 16441

URL: http://www.lyx.org/trac/changeset/16441
Log:
add more lyxerr output, don't use a reference (maybe stdlib-debug has problems 
with it)

Modified:
    lyx-devel/trunk/src/frontends/qt4/QToc.C

Modified: lyx-devel/trunk/src/frontends/qt4/QToc.C
URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/QToc.C?rev=16441
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/QToc.C (original)
+++ lyx-devel/trunk/src/frontends/qt4/QToc.C Sat Dec 30 15:50:45 2006
@@ -59,13 +59,16 @@
QStandardItemModel * QToc::tocModel()
 {
+       if (toc_models_.empty())
+       {
+               lyxerr[Debug::GUI] << "QToc::tocModel(): no types available " 
<< endl;
+               return 0;
+       }
+
According to the LyX coding rules, the opening curly bracket is not put on a separate line.

Fixed in

http://www.lyx.org/trac/changeset/16484


Michael

Reply via email to