]> git.lyx.org Git - features.git/commitdiff
type can be empty !
authorJohn Levon <levon@movementarian.org>
Wed, 6 Feb 2002 15:36:29 +0000 (15:36 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 6 Feb 2002 15:36:29 +0000 (15:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3495 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/QToc.C

index 49afac571b555f3ef82ee26ecb0de3a4a9f9e2ba..3cb9f5bf97c4dc5eae31ca4fd0207dca8c68b4c5 100644 (file)
@@ -1,4 +1,9 @@
+2002-02-06  John Levon  <moz@compsoc.man.ac.uk>
+
+       * QToc.C: fix crash
 2002-02-06  Edwin Leuven  <leuven@fee.uva.nl>
        * QGraphics.C: compilation fix
        * QTexinfoDialog.C:
        * QTexinfoDialog.h:
 
 2002-01-31  Edwin Leuven  <leuven@fee.uva.nl>
 
-       * qt2/QGraphics.C
-       * qt2/QGraphics.h
-       * qt2/QGraphicsDialog.C
-       * qt2/QGraphicsDialog.h
-       * qt2/lengthcombo.C
+       * qt2/QGraphics.C:
+       * qt2/QGraphics.h:
+       * qt2/QGraphicsDialog.C:
+       * qt2/QGraphicsDialog.h:
+       * qt2/lengthcombo.C:
        * qt2/ui/QGraphicsDialog.ui: new dialog
        * qt2/QAbout.C:
        * qt2/ui/QAboutDialog.ui: reduce size
index 50d8042c425d99686073749850d39ca3f3149755..2806b253db5cef428a1d55303e9e1e93cebb2b8d 100644 (file)
@@ -76,7 +76,8 @@ void QToc::update_contents()
  
 void QToc::updateToc(int newdepth)
 {
-       string const type = dialog_->typeCO->currentText().latin1();
+       char const * str = dialog_->typeCO->currentText().latin1();
+       string type (str ? str : "");
  
        Buffer::SingleList const & contents = controller().getContents(type);