[Okular-devel] [Bug 205084] dvi source references don't work properly when --unique is used (not a backend problem)

Albert Astals Cid tsdgeos at terra.es
Fri Jan 8 01:41:23 CET 2010


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





--- Comment #15 from Albert Astals Cid <tsdgeos terra es>  2010-01-08 01:41:18 ---
That sounds like a different bug whose fix would be

Index: generator_dvi.cpp
===================================================================
--- generator_dvi.cpp   (revision 1071422)
+++ generator_dvi.cpp   (working copy)
@@ -156,9 +156,9 @@

     SimplePageSize ps = m_dviRenderer->sizeOfPage( vp.pageNumber );
     double resolution = 0;
+    if (ps.isValid()) resolution =
(double)(pW)/ps.width().getLength_in_inch();
+    else resolution = m_resolution;

-    resolution = (double)(pW)/ps.width().getLength_in_inch();
-
     double py = (double)anch.distance_from_top.getLength_in_inch()*resolution
+ 0.5;

     vp.rePos.normalizedX = 0.5;

Works for you?

-- 
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