Skip to content

Commit

Permalink
Issue #1897: initialize nodes with vsMultiLine only if toGridExtensio…
Browse files Browse the repository at this point in the history
…ns option is set, so the host subtabs do not suffer from other bugs. See https://www.heidisql.com/forum.php?t=42191
  • Loading branch information
ansgarbecker committed May 21, 2024
1 parent 5b046b2 commit d383089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -6231,7 +6231,8 @@ procedure TMainForm.AnyGridInitNode(Sender: TBaseVirtualTree; ParentNode, Node:
begin
// Mark all nodes as multiline capable. Fixes painting issues with long lines.
// See issue #1897 and https://www.heidisql.com/forum.php?t=41502
Include(Node.States, vsMultiLine);
if toGridExtensions in (Sender as TVirtualStringTree).TreeOptions.MiscOptions then
Include(Node.States, vsMultiLine);
// Node may have data already, if added via InsertRow
if not (vsOnFreeNodeCallRequired in Node.States) then begin
Idx := Sender.GetNodeData(Node);
Expand Down

0 comments on commit d383089

Please sign in to comment.