patch_for_3369_part_3.txt
1 |
Index: qgsmapcanvas.cpp |
---|---|
2 |
=================================================================== |
3 |
--- qgsmapcanvas.cpp (revision 14982) |
4 |
+++ qgsmapcanvas.cpp (working copy) |
5 |
@@ -579,6 +579,8 @@ |
6 |
|
7 |
if ( mLastExtentIndex > 0 ) |
8 |
{ |
9 |
+ // This code should duplicate QgsMapCanvas::setExtent(), but without |
10 |
+ // modifying the view history. |
11 |
mLastExtentIndex--; |
12 |
mMapRenderer->setExtent( mLastExtent[mLastExtentIndex] ); |
13 |
emit extentsChanged(); |
14 |
@@ -589,6 +591,8 @@ |
15 |
// update controls' enabled state |
16 |
emit zoomLastStatusChanged( mLastExtentIndex > 0 ); |
17 |
emit zoomNextStatusChanged( mLastExtentIndex < mLastExtent.size() - 1 ); |
18 |
+ |
19 |
+ updateCanvasItemPositions(); |
20 |
} |
21 |
|
22 |
} // zoomToPreviousExtent |
23 |
@@ -601,6 +605,8 @@ |
24 |
} |
25 |
if ( mLastExtentIndex < mLastExtent.size() - 1 ) |
26 |
{ |
27 |
+ // This code should duplicate QgsMapCanvas::setExtent(), but without |
28 |
+ // modifying the view history. |
29 |
mLastExtentIndex++; |
30 |
mMapRenderer->setExtent( mLastExtent[mLastExtentIndex] ); |
31 |
emit extentsChanged(); |
32 |
@@ -611,6 +617,8 @@ |
33 |
// update controls' enabled state |
34 |
emit zoomLastStatusChanged( mLastExtentIndex > 0 ); |
35 |
emit zoomNextStatusChanged( mLastExtentIndex < mLastExtent.size() - 1 ); |
36 |
+ |
37 |
+ updateCanvasItemPositions(); |
38 |
} |
39 |
}// zoomToNextExtent |
40 |
|