From eb3e6cd05714d03e612250eee81ebfe1c4950460 Mon Sep 17 00:00:00 2001 From: Allan Rae Date: Wed, 11 Oct 2000 02:05:25 +0000 Subject: [PATCH] Angus's fd_form_title patch and my cleanup of it git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1100 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 8 ++++++++ src/lyx_cb.C | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6581ddbfee..d931106b53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-10-11 Allan Rae + + * src/lyx_cb.C (TimerCB): cleaned up Angus's patch. + +2000-10-10 Angus Leeming + + * src/lyx_cb.C (TimerCB): fix crash when fd_form_title doesn't exist. + 2000-10-10 Allan Rae * src/lyxrc.[Ch]: diff --git a/src/lyx_cb.C b/src/lyx_cb.C index 7e9cbb003a..2433f49267 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -748,7 +748,9 @@ LyXFont const UserFreeFont(BufferParams const & params) extern "C" void TimerCB(FL_OBJECT *, long) { // only if the form still exists - if (lyxrc.show_banner && fd_form_title->form_title != 0) { + if (lyxrc.show_banner + && fd_form_title + && fd_form_title->form_title) { if (fd_form_title->form_title->visible) { fl_hide_form(fd_form_title->form_title); }