Skip to content

Commit

Permalink
temporary workaround for #2714
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13500 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 16, 2010
1 parent 7340172 commit f8b728b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
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 f8b728b

Please sign in to comment.