Fix crash by removing unjustified Assert.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3714 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-03-11 17:31:07 +00:00
parent 7cbe56d12e
commit 2a89557f92
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2002-03-09 Angus Leeming <a.leeming@ic.ac.uk>
* FeedbackController.C (MessageCB): fix crash by removing
Assert(message_widget_) and returning silently in this case.
Can happen quite justifiably.
* Most files: consistent comments at the top of the file, usable by
sourcedoc.
2002-03-09 Herbert Voss <voss@lyx.org>
* FormGraphics.C: test if file exists, simplify an if command

View File

@ -42,7 +42,12 @@ void FeedbackController::setMessageWidget(FL_OBJECT * ob)
// preemptive handler for feedback messages
void FeedbackController::MessageCB(FL_OBJECT * ob, int event)
{
lyx::Assert(ob && message_widget_);
if (!message_widget_) {
// fail silently.
return;
}
lyx::Assert(ob);
switch (event) {
case FL_ENTER: