Skip to content

Commit

Permalink
Fix #10956 (QgsSnapper crash/freeze/issues)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wonder-sk committed Oct 20, 2014
1 parent 05157f8 commit 43c4cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/gui/qgsmapcanvas.sip
Expand Up @@ -58,7 +58,7 @@ class QgsMapCanvas : QGraphicsView

//! Get access to properties used for map rendering
//! @note added in 2.4
const QgsMapSettings& mapSettings() const;
const QgsMapSettings& mapSettings() const /KeepReference/;

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

0 comments on commit 43c4cd7

Please sign in to comment.