Skip to content

Commit 47564b8

Browse files
committed
Followup commit for #1084: Removed unused variable
1 parent 5ac76b9 commit 47564b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Source/VirtualTrees.pas

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33808,7 +33808,6 @@ procedure TCustomVirtualStringTree.PaintNormalText(var PaintInfo: TVTPaintInfo;
3380833808
TripleWidth: Integer;
3380933809
R: TRect;
3381033810
DrawFormat: Cardinal;
33811-
Size: TSize;
3381233811
Height: Integer;
3381333812

3381433813
begin
@@ -33851,9 +33850,8 @@ procedure TCustomVirtualStringTree.PaintNormalText(var PaintInfo: TVTPaintInfo;
3385133850
// If the font has been changed then the ellipsis width must be recalculated.
3385233851
TripleWidth := 0;
3385333852
// Recalculate also the width of the normal text.
33854-
NodeWidth := Size.cx + 2 * FTextMargin;
3385533853
NodeWidth := DoTextMeasuring(Canvas, Node, Column, Text).cx + 2 * FTextMargin;
33856-
InvalidateNode(Node); // repaint node and selection
33854+
InvalidateNode(Node); // repaint node and selection as the font chnaged, see #1084
3385733855
end;
3385833856

3385933857
DrawFormat := DT_NOPREFIX or DT_VCENTER or DT_SINGLELINE;

0 commit comments

Comments
 (0)