Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 1e4dde8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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.