Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 a57385e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit a57385e

Please sign in to comment.