Skip to content

Commit a630e4a

Browse files
author
mhugent
committedDec 31, 2010
Update item positions explicitely in zoom previous / zoom next. Fixes part of bug #3369
git-svn-id: http://svn.osgeo.org/qgis/trunk@14987 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e83fd33 commit a630e4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ void QgsMapCanvas::zoomToPreviousExtent()
589589
// update controls' enabled state
590590
emit zoomLastStatusChanged( mLastExtentIndex > 0 );
591591
emit zoomNextStatusChanged( mLastExtentIndex < mLastExtent.size() - 1 );
592+
// notify canvas items of change
593+
updateCanvasItemPositions();
592594
}
593595

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

0 commit comments

Comments
 (0)
Please sign in to comment.