Juergen Spitzmueller wrote:

> Unfortunately, I cannot verify if it works with gtk, because my gtkmm etc.
> libs (and pkg-config) are totally messed up since the recent distro
> update. But it compiles (this I could verify at least).

Unfortunately it does not compile for qt :-( Is the attached patch the
correct solution?


Georg
Index: src/frontends/qt2/QToc.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QToc.C,v
retrieving revision 1.31
diff -u -p -r1.31 QToc.C
--- src/frontends/qt2/QToc.C	27 Jul 2005 15:22:06 -0000	1.31
+++ src/frontends/qt2/QToc.C	27 Jul 2005 16:02:48 -0000
@@ -159,7 +159,7 @@ void QToc::updateToc(int newdepth)
 
 	dialog_->tocLV->setUpdatesEnabled(true);
 	dialog_->tocLV->update();
-	setTitle(dialog_->typeCO->currentText());
+	setTitle(fromqstr(dialog_->typeCO->currentText()));
 }
 
 

Reply via email to