Skip to content
Permalink
Browse files
temporary workaround for #2714
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13500 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 16, 2010
1 parent fc6fc01 commit 1e4dde8ab53cfa7e6591bfd765afbd356268ac8b
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/gui/qgsmapcanvas.cpp
@@ -960,7 +960,12 @@ void QgsMapCanvas::resizeEvent( QResizeEvent * e )
updateCanvasItemPositions();

updateScale();
#if QT_VERSION >= 0x40600
// FIXME: temporary workaround for #2714
QTimer::singleShot( 1, this, SLOT( refresh() ) );
#else
refresh();
#endif
emit extentsChanged();
}
isAlreadyIn = false;
@@ -1435,8 +1440,7 @@ void QgsMapCanvas::zoomByFactor( double scaleFactor )
void QgsMapCanvas::selectionChangedSlot()
{
// Find out which layer it was that sent the signal.
QgsMapLayer * layer = ( QgsMapLayer * )QObject::sender();

QgsMapLayer *layer = qobject_cast<QgsMapLayer *>( sender() );
emit selectionChanged( layer );
refresh();
}

0 comments on commit 1e4dde8

Please sign in to comment.