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
This commit is contained in:
Allan Rae 2000-10-11 02:05:25 +00:00
parent a7becbaac4
commit eb3e6cd057
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2000-10-11 Allan Rae <rae@lyx.org>
* src/lyx_cb.C (TimerCB): cleaned up Angus's patch.
2000-10-10 Angus Leeming <a.leeming@ic.ac.uk>
* src/lyx_cb.C (TimerCB): fix crash when fd_form_title doesn't exist.
2000-10-10 Allan Rae <rae@lyx.org>
* src/lyxrc.[Ch]:

View File

@ -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);
}