fix crash on custom bullet cancel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5854 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2002-12-18 14:13:16 +00:00
parent 40c5065b5c
commit 098a9edf78
2 changed files with 11 additions and 5 deletions

View File

@ -260,9 +260,11 @@ void BulletsModule::setCustom()
qt_( "Enter a custom bullet" ),
QLineEdit::Normal,
QString::null, &ok, this );
activeitem_->setPixmap(0,QPixmap());
activeitem_->setText(0,text);
activebullet_->setText(fromqstr(text));
activebullet_->setFont(-1);
if (ok) {
activeitem_->setPixmap(0,QPixmap());
activeitem_->setText(0,text);
activebullet_->setText(fromqstr(text));
activebullet_->setFont(-1);
}
}

View File

@ -1,3 +1,7 @@
2002-12-18 Edwin Leuven <e.leuven@uva.nl>
* BulletsModule.C: fix crash on custom bullet cancel
2002-12-18 John Levon <levon@movementarian.org>
* qfont_loader.C: symbol should not match "Standard Symbols 1"