kooloveme / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

TCellManager.FindColNum throws "Index out of bounds" #309

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which steps will reproduce the problem?
1. Load the attached test.html file with HtmlViewer.LoadFromFile.

What is the expected output?
The HTML file is read correctly.

What do you see instead?
A EStringListError exception is thrown.

Which version of the product are you using? Which compiler version are you
using? On which operating system?
svn head, Delphi 2009, Win7.

Please provide any additional information:
Replacing the line "if Row = Count then" in "TCellManager.FindColNum" by "while 
Row >= Count do" solved the bug.

Original issue reported on code.google.com by Andreas....@gmail.com on 14 Oct 2013 at 7:47

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for spotting and analyzing this issue.

Original comment by OrphanCat on 14 Oct 2013 at 5:58

GoogleCodeExporter commented 9 years ago
r443 fixes this issue...

...and exposes some other glitches with empty cells and unknown table width. 

Original comment by OrphanCat on 14 Oct 2013 at 6:20