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.
This commit is contained in:
Martin Dobias 2014-10-20 23:57:33 +07:00
parent 05157f89a0
commit 43c4cd72ad

View File

@ -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