crash on swtich to index view
Brought to you by:
gyunaev
Hi,
I find a bug that, when I open some document with kchmviewer 7.3 (say, python277rc1.chm), and on switching to index view, it crashes.
I have got the root cause, and make a patch.
the root cause is:
in TabIndex::refillIndex, indent maybe less than zero, but it is not checked.
the solution is:
ignore the invalid indent that is smaller than zero.
Thanks & Br,
Ferd Chen