mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:29:28 +02:00
SynEdit: prevent fold-view CalculateMaps assert during destroy. Once the handle is destroyed, the HL will scan delayed. Issue #40720
(cherry picked from commit fb279cada4
)
This commit is contained in:
parent
b086f9dfa0
commit
ca21254ef0
@ -8951,6 +8951,8 @@ begin
|
|||||||
FreeAndNil(BufferBitmap);
|
FreeAndNil(BufferBitmap);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
SurrenderPrimarySelection;
|
SurrenderPrimarySelection;
|
||||||
|
if FFoldedLinesView <> nil then
|
||||||
|
FFoldedLinesView.LinesInWindow := -1; // Mark as "not HandleAllocated"
|
||||||
inherited DestroyWnd;
|
inherited DestroyWnd;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user