Bad RTF table causing RichView to error
Posted: Sat Jul 12, 2025 8:53 pm
Greetings Sergey,
I am getting an error in this code:
Current code in RV22.2
Ideas?
I am getting an error in this code:
I know it is bad RTF code on a Table (however, I can't always fix the bad RTF tables. These can be from users. Is there a way to handle this more robustly?)First chance exception at $75D50144. Exception class EListError with message 'List index out of bounds (-1). TRVList is empty'.
Current code in RV22.2
Code: Select all
function TRVRTFReader.DoTable(WhatHappens: TRVRTFTableEventKind): Boolean;
begin
Result := True;
UpdateMarker;
if Assigned(FOnTable) then
FOnTable(Self, WhatHappens, Result);
AfterTableRow := WhatHappens in [rvf_tbl_RowEnd, rvf_tbl_TableEnd,
rvf_tbl_TableForcedEnd];
end;