mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
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:
parent
05157f89a0
commit
43c4cd72ad
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user