mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
7cbe56d12e
commit
2a89557f92
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user