SynEdit: WrappedView, remove incorrect assert. New range can overlap several existing ranges

This commit is contained in:
Martin 2025-02-27 12:47:56 +01:00
parent 03fa715e23
commit d8e64144ee

View File

@ -417,7 +417,6 @@ begin
end
else begin
assert((i = 0) or (Item[i-1].Last < AFromOffset-1), 'TSynWordWrapInvalidLines.InvalidateLines: (i = 0) or (Item[i-1].Last < AFromOffset-1)');
assert((i >= c -1) or (Item[i+1].First > AToOffset+1), 'TSynWordWrapInvalidLines.InvalidateLines: (i < Cnt-1) or (Item[i+1].First > AToOffset+1)');
InsertRows(i, 1);
PSynWordWrapInvalidLinesRecord(ItemPointer[i])^.First := AFromOffset;
PSynWordWrapInvalidLinesRecord(ItemPointer[i])^.Last := AToOffset;