Skip to content

Commit b99ab0a

Browse files
committed
restore setting of scene to map canvas items (followup 78c5195)
1 parent fe7a0e5 commit b99ab0a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/gui/qgsmapcanvasitem.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
#include "qgslogger.h"
2828

2929
QgsMapCanvasItem::QgsMapCanvasItem( QgsMapCanvas* mapCanvas )
30-
: QGraphicsItem(), mMapCanvas( mapCanvas ),
31-
mPanningOffset( 0, 0 ), mItemSize( 0, 0 )
30+
: QGraphicsItem( 0, mapCanvas->scene() )
31+
, mMapCanvas( mapCanvas )
32+
, mPanningOffset( 0, 0 )
33+
, mItemSize( 0, 0 )
3234
{
3335
}
3436

0 commit comments

Comments
 (0)