Skip to content

Commit c770406

Browse files
committed
fix(ui): apply the same larger tree node height on Linux
Refs #2344
1 parent c6dffe1 commit c770406

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

source/apphelpers.pas

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,12 +1479,8 @@ procedure FixVT(VT: TVirtualStringTree; IsResultGrid: Boolean=False);
14791479
else
14801480
MultiLineCount := 1;
14811481
// Issue #2344: TBaseVirtualTree.UpdateVerticalRange crashes with ERangeError on ArchLinux
1482-
// due to FRangeY/Cardinal getting a negative value.
1483-
// Happening when DefaultNodeHeight is set and then with 0 nodes in data grid
1484-
// Once the form files are back at 96 PPI this should no longer crash.
1485-
{$IFNDEF LINUX}
1482+
// Fixed through form files back at 96 PPI
14861483
VT.DefaultNodeHeight := SingleLineHeight * MultiLineCount;
1487-
{$ENDIF}
14881484
if MultiLineCount > 1 then begin
14891485
VT.BeginUpdate;
14901486
Node := VT.GetFirstInitialized;

0 commit comments

Comments
 (0)