Skip to content

Commit

Permalink
skip rendering while size is still 1x1
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15255 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 24, 2011
1 parent e42d61e commit 63d3f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -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 );
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgsmapcanvasmap.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 63d3f86

Please sign in to comment.