mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 14:38:01 +02:00
IDE: changing control font in paint event triggers another paint event. Only canvas.Font should be changed. Patch by Bald Zhang. issue #41361
This commit is contained in:
parent
3664d7bb93
commit
af12663634
@ -320,9 +320,9 @@ procedure TIDEOptionsDialog.CategoryTreeCustomDrawItem(Sender: TCustomTreeView;
|
||||
begin
|
||||
// make group categories bold
|
||||
if Node.Data = nil then // is group category
|
||||
Node.TreeView.Font.Style := [fsBold]
|
||||
Node.TreeView.Canvas.Font.Style := [fsBold]
|
||||
else
|
||||
Node.TreeView.Font.Style := [];
|
||||
Node.TreeView.Canvas.Font.Style := [];
|
||||
end;
|
||||
|
||||
procedure TIDEOptionsDialog.CategoryTreeExpanded(Sender: TObject; Node: TTreeNode);
|
||||
|
Loading…
Reference in New Issue
Block a user