Bug in RVRuler.pas
Posted: Tue Aug 21, 2007 8:12 am
I have a simple RVF file, which causes an exception "List index out of bounds (-1)" inside function TRVRuler.GetListIndents
After some debugging, I changed 1 line of code:
became
But I think that this check should be moved to GetItem method.
After some debugging, I changed 1 line of code:
Code: Select all
while not RVEditor.IsParaStart(FirstParaItemNo) do
Dec(FirstParaItemNo);
Code: Select all
while not RVEditor.IsParaStart(FirstParaItemNo) and (FirstParaItemNo>0) do
Dec(FirstParaItemNo);