[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/okular/ui
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2009-11-20 20:52:52
Message-ID: 1258750372.880291.6129.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1052137 by aacid:

Get the viewport before resizing the canvas otherwise the canvas resizal makes the \
                viewport change and later we end up with an incorrect viewport
BUGS: 215463


 M  +1 -1      pageview.cpp  


--- trunk/KDE/kdegraphics/okular/ui/pageview.cpp #1052136:1052137
@@ -3004,6 +3004,7 @@
     bool wasUpdatesEnabled = viewport()->updatesEnabled();
     if ( fullWidth != contentAreaWidth() || fullHeight != contentAreaHeight() )
     {
+        const Okular::DocumentViewport vp = d->document->viewport();
         // disable updates and resize the viewportContents
         if ( wasUpdatesEnabled )
             viewport()->setUpdatesEnabled( false );
@@ -3011,7 +3012,6 @@
         // restore previous viewport if defined and updates enabled
         if ( wasUpdatesEnabled )
         {
-            const Okular::DocumentViewport & vp = d->document->viewport();
             if ( vp.pageNumber >= 0 )
             {
                 int prevX = horizontalScrollBar()->value(),


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic