mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-03 23:07:27 +01:00
lcl: fix GetFontData logfont boolean flag check for non-zero value
git-svn-id: trunk@48284 -
This commit is contained in:
parent
192eb7981a
commit
bbf31c34b7
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user