Skip to content

Commit

Permalink
Solved bugs with double deletion of map canvas items in Python bindings.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6909 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 23, 2007
1 parent 7e367f3 commit c825b86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/gui/qgsmapcanvasitem.sip
Expand Up @@ -8,7 +8,7 @@ class QgsMapCanvasItem : QGraphicsItem
protected:

//! protected constructor: cannot be constructed directly
QgsMapCanvasItem(QgsMapCanvas* mapCanvas);
QgsMapCanvasItem(QgsMapCanvas* mapCanvas /TransferThis/);

virtual ~QgsMapCanvasItem();

Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgsrubberband.sip
Expand Up @@ -6,7 +6,7 @@ class QgsRubberBand: QgsMapCanvasItem
%End

public:
QgsRubberBand(QgsMapCanvas* mapCanvas, bool isPolygon = false);
QgsRubberBand(QgsMapCanvas* mapCanvas /TransferThis/, bool isPolygon = false);
~QgsRubberBand();

void setColor(const QColor & color);
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgsvertexmarker.sip
Expand Up @@ -16,7 +16,7 @@ class QgsVertexMarker : QgsMapCanvasItem
ICON_BOX
};

QgsVertexMarker(QgsMapCanvas* mapCanvas);
QgsVertexMarker(QgsMapCanvas* mapCanvas /TransferThis/);

void setCenter(const QgsPoint& point);

Expand Down

0 comments on commit c825b86

Please sign in to comment.