type can be empty !

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3495 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-02-06 15:36:29 +00:00
parent 8e3456ec01
commit 832f620398
2 changed files with 12 additions and 6 deletions

View 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:
@ -6,11 +11,11 @@
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

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