Skip to content

Commit 63d3f86

Browse files
author
jef
committedFeb 24, 2011
skip rendering while size is still 1x1
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15255 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class QgsMapCanvas::CanvasProperties
8080
QgsMapCanvas::QgsMapCanvas( QWidget * parent, const char *name )
8181
: QGraphicsView( parent )
8282
, mCanvasProperties( new CanvasProperties )
83-
, mPainting( false )
8483
, mNewSize( QSize() )
84+
, mPainting( false )
8585
{
8686
mScene = new QGraphicsScene();
8787
setScene( mScene );

‎src/gui/qgsmapcanvasmap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ QRectF QgsMapCanvasMap::boundingRect() const
4444

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

4950
mPixmap = QPixmap( size );

0 commit comments

Comments
 (0)
Please sign in to comment.