Skip to content
Permalink
Browse files
temporary workaround for #2714
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 f8b728bd8c38fe20592b1cefa7b857a68e32a024
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 f8b728b

Please sign in to comment.