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

List:       kde-commits
Subject:    [calligra] krita/ui: Use the ZoomController instead of the zoom handler for resetting zoom.
From:       Arjen Hiemstra <ahiemstra () heimr ! nl>
Date:       2012-05-16 18:17:57
Message-ID: 20120516181757.03D3FA60A9 () git ! kde ! org
[Download RAW message or body]

Git commit bc4da0c745838265cc9b8f8f7430ef7812a0a948 by Arjen Hiemstra.
Committed on 16/05/2012 at 20:15.
Pushed by ahiemstra into branch 'master'.

Use the ZoomController instead of the zoom handler for resetting zoom.

The zoom actions and combobox are all based on the controller, hence
bypassing the controller to set the zoom makes those actions behave in
strange ways.

BUG: 298945

M  +1    -1    krita/ui/kis_zoom_manager.cc

http://commits.kde.org/calligra/bc4da0c745838265cc9b8f8f7430ef7812a0a948

diff --git a/krita/ui/kis_zoom_manager.cc b/krita/ui/kis_zoom_manager.cc
index e398d19..6189f21 100644
--- a/krita/ui/kis_zoom_manager.cc
+++ b/krita/ui/kis_zoom_manager.cc
@@ -202,7 +202,7 @@ void KisZoomManager::pageOffsetChanged()
 
 void KisZoomManager::zoomTo100()
 {
-    m_zoomHandler->setZoom(1.0);
+    m_zoomController->setZoom(KoZoomMode::ZOOM_CONSTANT, 1.0);
     m_view->canvasBase()->notifyZoomChanged();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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