From 6cbc6d9624f8ac17dc7858807f8950fe21336793 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 15 Jan 2007 15:51:45 +0000 Subject: [PATCH] Fix bug 3058: changes in LyX's preferences aren't taken immediately http://bugzilla.lyx.org/show_bug.cgi?id=3058 Bug fixed by setting the UpdateFlags correctly in LFUN_LYXRC_APPLY and LFUN_SCREEN_FONT_UPDATE. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16693 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfunc.C | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 0484e8e150..3552d17a0f 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1464,8 +1464,9 @@ void LyXFunc::dispatch(FuncRequest const & cmd) // handle the screen font changes. lyxrc.set_font_norm_type(); theFontLoader().update(); - // All visible buffers will need resize - view()->resize(); + /// FIXME: only the current view will be updated. the Gui + /// class is able to furnish the list of views. + updateFlags = Update::Force; break; case LFUN_SET_COLOR: { @@ -1693,6 +1694,12 @@ void LyXFunc::dispatch(FuncRequest const & cmd) } actOnUpdatedPrefs(lyxrc_orig, lyxrc); + + /// We force the redraw in any case because there might be + /// some screen font changes. + /// FIXME: only the current view will be updated. the Gui + /// class is able to furnish the list of views. + updateFlags = Update::Force; break; }