summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/globals.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-05 21:11:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-05 21:11:35 +0300
commitd3078120b812849fbc823f90b23fd95f1d286398 (patch)
treeff271cc38b5e7765f0ecbaa90dc8287c42a2563c /plugins/Scriver/src/globals.cpp
parent38e9a47650627d9130977b0ff719d5fc8ede6277 (diff)
Scriver: "entry area min size in lines" setting doesn't work
Diffstat (limited to 'plugins/Scriver/src/globals.cpp')
-rw-r--r--plugins/Scriver/src/globals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp
index 52f0525a3f..485b7c117b 100644
--- a/plugins/Scriver/src/globals.cpp
+++ b/plugins/Scriver/src/globals.cpp
@@ -276,9 +276,9 @@ void LoadInfobarFonts()
LOGFONT lf;
LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, &lf, NULL);
g_dat.minInputAreaHeight = db_get_dw(NULL, SRMMMOD, SRMSGSET_AUTORESIZELINES, SRMSGDEFSET_AUTORESIZELINES) * abs(lf.lfHeight) * g_dat.logPixelSY / 72;
+
if (g_dat.hInfobarBrush != NULL)
DeleteObject(g_dat.hInfobarBrush);
-
g_dat.hInfobarBrush = CreateSolidBrush(db_get_dw(NULL, SRMMMOD, SRMSGSET_INFOBARBKGCOLOUR, SRMSGDEFSET_INFOBARBKGCOLOUR));
}