mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 08:47:59 +02:00
SynEdit: removed incorrect assert
This commit is contained in:
parent
faeab730e0
commit
50e99af185
@ -3426,10 +3426,9 @@ begin
|
||||
if ( (fLockCount > 0) and
|
||||
((not FInTopLineChanged) or (fvfNeedCalcMaps in FFlags)) // TODO: Scan now, to avoid invalidate later
|
||||
) or
|
||||
( (HighLighter <> nil) and HighLighter.NeedScan )
|
||||
( (HighLighter <> nil) and HighLighter.NeedScan ) // SynEdit.DoHighlightChanged will call FixFolding, which does CalculateMaps
|
||||
// TODO: HighLighter.CurrentRanges.NeedsReScanStartIndex < "last line in windows"
|
||||
then begin
|
||||
assert(fLockCount > 0, 'TSynEditFoldedView.CalculateMaps: fLockCount > 0');
|
||||
Include(FFlags, fvfNeedCalcMaps);
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user