Skip to content
Permalink
Browse files

fix advanced digitizing panel display issue after panning

panning would cause the rubberbands of the adv. digit. panel to be invisible.
update the canvas item is now done after each extent changes
  • Loading branch information
3nids committed Jun 15, 2017
1 parent c257448 commit 40e5ddad30dc2cdf55b1615df906149520227f98
Showing with 2 additions and 9 deletions.
  1. +2 −9 src/gui/qgsmapcanvas.cpp
@@ -183,6 +183,8 @@ QgsMapCanvas::QgsMapCanvas( QWidget *parent )

connect( &mAutoRefreshTimer, &QTimer::timeout, this, &QgsMapCanvas::autoRefreshTriggered );

connect( this, &QgsMapCanvas::extentsChanged, this, &QgsMapCanvas::updateCanvasItemPositions );

setInteractive( false );

refresh();
@@ -790,9 +792,6 @@ void QgsMapCanvas::setExtent( const QgsRectangle &r, bool magnified )
// update controls' enabled state
emit zoomLastStatusChanged( mLastExtentIndex > 0 );
emit zoomNextStatusChanged( mLastExtentIndex < mLastExtent.size() - 1 );
// notify canvas items of change
updateCanvasItemPositions();

} // setExtent

void QgsMapCanvas::setCenter( const QgsPointXY &center )
@@ -831,10 +830,6 @@ void QgsMapCanvas::setRotation( double degrees )
mSettings.setRotation( degrees );
emit rotationChanged( degrees );
emit extentsChanged(); // visible extent changes with rotation

// notify canvas items of change (needed?)
updateCanvasItemPositions();

} // setRotation


@@ -890,8 +885,6 @@ 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 40e5dda

Please sign in to comment.
You can’t perform that action at this time.