lcl: fix GetFontData logfont boolean flag check for non-zero value

git-svn-id: trunk@48284 -
This commit is contained in:
dmitry 2015-03-12 04:27:03 +00:00
parent 192eb7981a
commit bbf31c34b7

View File

@ -145,11 +145,11 @@ begin
Height := lfHeight;
if lfWeight >= FW_BOLD then
Include(Style, fsBold);
if lfItalic = 1 then
if lfItalic > 0 then
Include(Style, fsItalic);
if lfUnderline = 1 then
if lfUnderline > 0 then
Include(Style, fsUnderline);
if lfStrikeOut = 1 then
if lfStrikeOut > 0 then
Include(Style, fsStrikeOut);
Charset := TFontCharset(lfCharSet);
Name := lfFaceName;