summaryrefslogtreecommitdiff
path: root/src/modules/clist
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-16 14:40:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-16 14:40:44 +0000
commitd465fbfa8ead75af60f9fcdf936a13c3a4cc11a8 (patch)
tree4411e3bbba80ba5803d1e529aca068a1a1a0b44b /src/modules/clist
parent8d31a25ef20056ea6cb1bd71619f23c7ffe36b6b (diff)
damned magic
git-svn-id: http://svn.miranda-ng.org/main/trunk@11464 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist')
-rw-r--r--src/modules/clist/clcutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/clist/clcutils.cpp b/src/modules/clist/clcutils.cpp
index 830fd128ed..a3d5c8dc6c 100644
--- a/src/modules/clist/clcutils.cpp
+++ b/src/modules/clist/clcutils.cpp
@@ -697,7 +697,7 @@ void fnGetFontSetting(int i, LOGFONT* lf, COLORREF* colour)
*colour = db_get_dw(NULL, "CLC", idstr, *colour);
mir_snprintf(idstr, SIZEOF(idstr), "Font%dSize", i);
- lf->lfHeight = db_get_b(NULL, "CLC", idstr, lf->lfHeight);
+ lf->lfHeight = (char)db_get_b(NULL, "CLC", idstr, lf->lfHeight);
mir_snprintf(idstr, SIZEOF(idstr), "Font%dSty", i);
BYTE style = (BYTE)db_get_b(NULL, "CLC", idstr, (lf->lfWeight == FW_NORMAL ? 0 : DBFONTF_BOLD) | (lf->lfItalic ? DBFONTF_ITALIC : 0) | (lf->lfUnderline ? DBFONTF_UNDERLINE : 0));