Skip to content

Commit c825b86

Browse files
author
wonder
committed
Solved bugs with double deletion of map canvas items in Python bindings.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6909 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7e367f3 commit c825b86

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/gui/qgsmapcanvasitem.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class QgsMapCanvasItem : QGraphicsItem
88
protected:
99

1010
//! protected constructor: cannot be constructed directly
11-
QgsMapCanvasItem(QgsMapCanvas* mapCanvas);
11+
QgsMapCanvasItem(QgsMapCanvas* mapCanvas /TransferThis/);
1212

1313
virtual ~QgsMapCanvasItem();
1414

python/gui/qgsrubberband.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class QgsRubberBand: QgsMapCanvasItem
66
%End
77

88
public:
9-
QgsRubberBand(QgsMapCanvas* mapCanvas, bool isPolygon = false);
9+
QgsRubberBand(QgsMapCanvas* mapCanvas /TransferThis/, bool isPolygon = false);
1010
~QgsRubberBand();
1111

1212
void setColor(const QColor & color);

python/gui/qgsvertexmarker.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class QgsVertexMarker : QgsMapCanvasItem
1616
ICON_BOX
1717
};
1818

19-
QgsVertexMarker(QgsMapCanvas* mapCanvas);
19+
QgsVertexMarker(QgsMapCanvas* mapCanvas /TransferThis/);
2020

2121
void setCenter(const QgsPoint& point);
2222

0 commit comments

Comments
 (0)