From 4f9aec2d51c2df7c33128efaed573203bf761bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Mon, 6 Feb 2006 06:30:59 +0000 Subject: [PATCH] fixed a crash when preferences are set and message window is hidden git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@171 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/vte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vte.c b/src/vte.c index 9296ef7d..a10badf4 100644 --- a/src/vte.c +++ b/src/vte.c @@ -262,7 +262,7 @@ void vte_apply_user_settings(void) vf->vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL(vc->vte), vc->scroll_on_key); vf->vte_terminal_set_scroll_on_output(VTE_TERMINAL(vc->vte), vc->scroll_on_out); vf->vte_terminal_set_emulation(VTE_TERMINAL(vc->vte), vc->emulation); - vf->vte_terminal_set_font_from_string(VTE_TERMINAL(vc->vte), vc->font); + if (app->msgwindow_visible) vf->vte_terminal_set_font_from_string(VTE_TERMINAL(vc->vte), vc->font); vf->vte_terminal_set_color_foreground(VTE_TERMINAL(vc->vte), vc->color_fore); vf->vte_terminal_set_color_background(VTE_TERMINAL(vc->vte), vc->color_back); }