]> git.lyx.org Git - features.git/commitdiff
Fix bug 3058: changes in LyX's preferences aren't taken immediately
authorAbdelrazak Younes <younes@lyx.org>
Mon, 15 Jan 2007 15:51:45 +0000 (15:51 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 15 Jan 2007 15:51:45 +0000 (15:51 +0000)
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

index 0484e8e15049e7bcbb7408fc128d680d91a9dd0d..3552d17a0f0c3f57189d8db4737479aa63907537 100644 (file)
@@ -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;
                }