[Okular-devel] [Bug 283447] TOC of dvi files is shown flat

Albert Astals Cid tsdgeos at terra.es
Thu Oct 6 11:13:11 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=283447





--- Comment #3 from Albert Astals Cid <tsdgeos terra es>  2011-10-06 11:13:10 ---
Git commit 9d6926f9b8d5b4128ec317d6c4ee6fce5de20626 by Albert Astals Cid.
Committed on 06/10/2011 at 13:09.
Pushed by aacid into branch 'master'.

Fix creation of the TOC tree for dvi files

The old code assumed the number of children would be
"-NUMBER "
while this file has
"-NUMBER/"
so what we do now is looping after the - until we find a non digit
All this code would better be done using a regexp and not that many section
calls
but i did not want to touch it more than needed
BUGS: 283447
FIXED-IN: 4.7.3
(cherry picked from commit 83df127ac057d98e6e4f67e07074675c8830198a)

M  +9    -2    generators/dvi/dviRenderer_prescan.cpp

http://commits.kde.org/okular/9d6926f9b8d5b4128ec317d6c4ee6fce5de20626

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list