Skip to content

Commit

Permalink
better fix for b99ab0a
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 22, 2014
1 parent f10a8cc commit d36597a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgsmapcanvasitem.cpp
Expand Up @@ -27,11 +27,13 @@
#include "qgslogger.h"

QgsMapCanvasItem::QgsMapCanvasItem( QgsMapCanvas* mapCanvas )
: QGraphicsItem( 0, mapCanvas->scene() )
: QGraphicsItem()
, mMapCanvas( mapCanvas )
, mPanningOffset( 0, 0 )
, mItemSize( 0, 0 )
{
Q_ASSERT( mapCanvas && mapCanvas->scene() );
mapCanvas->scene()->addItem( this );
}

QgsMapCanvasItem::~QgsMapCanvasItem()
Expand Down

0 comments on commit d36597a

Please sign in to comment.