diff --git a/components/richmemo/gtk2/gtk2richmemo.pas b/components/richmemo/gtk2/gtk2richmemo.pas index 10561f4f9..81bfbb9c0 100644 --- a/components/richmemo/gtk2/gtk2richmemo.pas +++ b/components/richmemo/gtk2/gtk2richmemo.pas @@ -1345,7 +1345,7 @@ begin // rely on LogFont structure to be initialiazed (as it seems to be) if gtkobj^.LogFont.lfItalic > 0 then Include(params.Style, fsItalic); - if gtkobj^.LogFont.lfWidth >= FW_BOLD then Include(params.Style, fsBold); + if gtkobj^.LogFont.lfWeight >= FW_BOLD then Include(params.Style, fsBold); if gtkobj^.LogFont.lfUnderline > 0 then Include(params.Style, fsUnderline); if gtkobj^.LogFont.lfStrikeOut > 0 then Include(params.Style, fsStrikeOut); end;