Skip to content

Commit 43c4cd7

Browse files
committedOct 20, 2014
Fix #10956 (QgsSnapper crash/freeze/issues)
QgsMapSettings instance of QgsMapCanvas may have been prematurely deleted by SIP. The KeepReference annotation will force QgsMapCanvas wrapper to keep one more ref to it, so its reference count will not go to zero while map canvas is still alive.
1 parent 05157f8 commit 43c4cd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/gui/qgsmapcanvas.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class QgsMapCanvas : QGraphicsView
5858

5959
//! Get access to properties used for map rendering
6060
//! @note added in 2.4
61-
const QgsMapSettings& mapSettings() const;
61+
const QgsMapSettings& mapSettings() const /KeepReference/;
6262

6363
//! sets whether to use projections for this layer set
6464
//! @note added in 2.4

0 commit comments

Comments
 (0)
Please sign in to comment.