mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 14:49: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);
|
||||
{$ENDIF}
|
||||
SurrenderPrimarySelection;
|
||||
if FFoldedLinesView <> nil then
|
||||
FFoldedLinesView.LinesInWindow := -1; // Mark as "not HandleAllocated"
|
||||
inherited DestroyWnd;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user