Skip to content
Permalink
Browse files

skip rendering while size is still 1x1

git-svn-id: http://svn.osgeo.org/qgis/trunk@15255 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 24, 2011
1 parent 158266d commit 2a53db219bbc12c3c2c9828a98343ace3dd7fc60
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/gui/qgsmapcanvas.cpp
  2. +1 −0 src/gui/qgsmapcanvasmap.cpp
@@ -80,8 +80,8 @@ class QgsMapCanvas::CanvasProperties
QgsMapCanvas::QgsMapCanvas( QWidget * parent, const char *name )
: QGraphicsView( parent )
, mCanvasProperties( new CanvasProperties )
, mPainting( false )
, mNewSize( QSize() )
, mPainting( false )
{
mScene = new QGraphicsScene();
setScene( mScene );
@@ -44,6 +44,7 @@ QRectF QgsMapCanvasMap::boundingRect() const

void QgsMapCanvasMap::resize( QSize size )
{
QgsDebugMsg( QString( "resizing to %1x%2" ).arg( size.width() ).arg( size.height() ) );
prepareGeometryChange(); // to keep QGraphicsScene indexes up to date on size change

mPixmap = QPixmap( size );

0 comments on commit 2a53db2

Please sign in to comment.
You can’t perform that action at this time.