Skip to content
Permalink
Browse files
Update item positions explicitely in zoom previous / zoom next. Fixes…
… part of bug #3369

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14987 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 31, 2010
1 parent c030f7f commit a57385e6d92b302349956bd355085e5a46adeaf9
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgsmapcanvas.cpp
@@ -589,6 +589,8 @@ void QgsMapCanvas::zoomToPreviousExtent()
// update controls' enabled state
emit zoomLastStatusChanged( mLastExtentIndex > 0 );
emit zoomNextStatusChanged( mLastExtentIndex < mLastExtent.size() - 1 );
// notify canvas items of change
updateCanvasItemPositions();
}

} // zoomToPreviousExtent
@@ -611,6 +613,8 @@ void QgsMapCanvas::zoomToNextExtent()
// update controls' enabled state
emit zoomLastStatusChanged( mLastExtentIndex > 0 );
emit zoomNextStatusChanged( mLastExtentIndex < mLastExtent.size() - 1 );
// notify canvas items of change
updateCanvasItemPositions();
}
}// zoomToNextExtent

0 comments on commit a57385e

Please sign in to comment.