Skip to content

Commit f8b728b

Browse files
author
jef
committedMay 16, 2010
temporary workaround for #2714
git-svn-id: http://svn.osgeo.org/qgis/trunk@13500 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7340172 commit f8b728b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,12 @@ void QgsMapCanvas::resizeEvent( QResizeEvent * e )
960960
updateCanvasItemPositions();
961961

962962
updateScale();
963+
#if QT_VERSION >= 0x40600
964+
// FIXME: temporary workaround for #2714
965+
QTimer::singleShot( 1, this, SLOT( refresh() ) );
966+
#else
963967
refresh();
968+
#endif
964969
emit extentsChanged();
965970
}
966971
isAlreadyIn = false;
@@ -1435,8 +1440,7 @@ void QgsMapCanvas::zoomByFactor( double scaleFactor )
14351440
void QgsMapCanvas::selectionChangedSlot()
14361441
{
14371442
// Find out which layer it was that sent the signal.
1438-
QgsMapLayer * layer = ( QgsMapLayer * )QObject::sender();
1439-
1443+
QgsMapLayer *layer = qobject_cast<QgsMapLayer *>( sender() );
14401444
emit selectionChanged( layer );
14411445
refresh();
14421446
}

0 commit comments

Comments
 (0)
Please sign in to comment.