Commit f867ebc8 authored by Jan Hambrecht's avatar Jan Hambrecht

emit the zoomChanged signal after setting the document size

to the page size so that application can set their own 
document size to the convas controller


svn path=/trunk/koffice/; revision=648820
parent 8e950332
......@@ -93,7 +93,6 @@ void KoZoomController::setZoom(KoZoomMode::Mode mode, double zoom)
}
m_zoomHandler->setZoom(zoom);
emit zoomChanged(mode, zoom);
// Tell the canvasController that the zoom has changed
// Actually canvasController doesn't know about zoom, but the document in pixels
......@@ -102,6 +101,8 @@ void KoZoomController::setZoom(KoZoomMode::Mode mode, double zoom)
QSize( int(0.5 + m_zoomHandler->documentToViewX(m_pageSize.width())),
int(0.5 + m_zoomHandler->documentToViewY(m_pageSize.height())) ) );
emit zoomChanged(mode, zoom);
// Finally ask the canvasController to recenter
m_canvasController->recenterPreferred();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment