Skip to content
Browse files
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.
  • Loading branch information
wonder-sk committed Oct 20, 2014
1 parent 05157f8 commit 43c4cd72ada19e9293a0c881ee5fb42acab74cc7
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/gui/qgsmapcanvas.sip
@@ -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

0 comments on commit 43c4cd7

Please sign in to comment.