mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Do not overwrite FCellFont after adjusting its color. Fixes issue #1295
This commit is contained in:
@@ -290,9 +290,11 @@ var
|
||||
CellBounds, TextBounds: TRect;
|
||||
Ghosted: Boolean;
|
||||
ImageIndex: Integer;
|
||||
f: TFont;
|
||||
begin
|
||||
// Return the cell's rectangle, relative to the parent form.
|
||||
FTree.GetTextInfo(FNode, FColumn, FCellFont, TextBounds, Text);
|
||||
f := TFont.Create;
|
||||
FTree.GetTextInfo(FNode, FColumn, f, TextBounds, Text);
|
||||
CellBounds := FTree.GetDisplayRect(FNode, FColumn, False);
|
||||
|
||||
Inc(CellBounds.Left, Integer(FTree.GetNodeLevel(FNode)) * (Integer(FTree.Indent)+FTree.TextMargin));
|
||||
|
||||
Reference in New Issue
Block a user