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
This commit is contained in:
Abdelrazak Younes 2007-01-15 15:51:45 +00:00
parent 8fbaeb17df
commit 6cbc6d9624

View 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;
}