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

List:       koffice
Subject:    kpresenter patch for zoom
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2002-07-30 7:57:09
[Download RAW message or body]

Hello all

if you select the area which you want to zoom with the mouse, the zoomed area 
shows not the area you selected. It only works when the zoom is 1.

The attached patch solves the problem.

Is it still possible to commit it?

Thorsten
["patch20" (text/x-diff)]

Index: kpresenter_view.cc
===================================================================
RCS file: /home/kde/koffice/kpresenter/kpresenter_view.cc,v
retrieving revision 1.841
diff -u -3 -p -r1.841 kpresenter_view.cc
--- kpresenter_view.cc	2002/07/29 11:47:06	1.841
+++ kpresenter_view.cc	2002/07/30 07:53:02
@@ -6120,9 +6120,10 @@ void KPresenterView::setZoomRect( const 
         double width = zoomHandler()->resolutionX() * zoomHandler()->unzoomItY( rect.width() );
         zoom = QMIN( qRound( static_cast<double>(m_canvas->visibleRect().height() * 100 ) / height ),
                      qRound( static_cast<double>(m_canvas->visibleRect().width() * 100 ) / width ) );
-        //zoom before croll canvas.
+        //zoom before scroll canvas.
+        KoPoint save( zoomHandler()->unzoomPoint(rect.topLeft()) );
         viewZoom( QString::number(zoom ) );
-        m_canvas->scrollTopLeftPoint( zoomHandler()->zoomPoint( rect.topLeft()) );
+        m_canvas->scrollTopLeftPoint( zoomHandler()->zoomPoint( save ) );
     }
     else
     {

____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice

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

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