You've already forked lazarus-ccr
* Fixed crash when showing a hint without a associated node, e.g., Header hints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1084,7 +1084,7 @@ type
|
|||||||
LineBreakStyle: TVTToolTipLineBreakStyle;
|
LineBreakStyle: TVTToolTipLineBreakStyle;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// The trees need an own hint window class because of adjusted font.
|
// The trees need an own hint window class because of Unicode output and adjusted font.
|
||||||
|
|
||||||
{ TVirtualTreeHintWindow }
|
{ TVirtualTreeHintWindow }
|
||||||
|
|
||||||
@ -15911,7 +15911,8 @@ begin
|
|||||||
else
|
else
|
||||||
HintStr := DoGetNodeHint(HitInfo.HitNode, HitInfo.HitColumn, FHintData.LineBreakStyle);
|
HintStr := DoGetNodeHint(HitInfo.HitNode, HitInfo.HitColumn, FHintData.LineBreakStyle);
|
||||||
// Determine actual line break style depending on what was returned by the methods and what's in the node.
|
// Determine actual line break style depending on what was returned by the methods and what's in the node.
|
||||||
if (FHintData.LineBreakStyle = hlbDefault) and (vsMultiline in HitInfo.HitNode.States) then
|
if (FHintData.LineBreakStyle = hlbDefault) and Assigned(HitInfo.HitNode)
|
||||||
|
and (vsMultiline in HitInfo.HitNode.States) then
|
||||||
FHintData.LineBreakStyle := hlbForceMultiLine;
|
FHintData.LineBreakStyle := hlbForceMultiLine;
|
||||||
if FHintData.LineBreakStyle = hlbForceMultiLine then
|
if FHintData.LineBreakStyle = hlbForceMultiLine then
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user