mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Crazy fix to avoid shared data getting corrupted in sip bindings
Without this (should be unnecessary) virtual destructor the shared data member for QgsProperty gets filled with garbage if a QgsProperty is created from python code. I can't explain it...!
This commit is contained in:
parent
c3617dec22
commit
fa26b45736
@ -76,6 +76,8 @@ class QgsProperty
|
||||
};
|
||||
|
||||
QgsProperty();
|
||||
virtual ~QgsProperty();
|
||||
|
||||
static QgsProperty fromExpression( const QString& expression, bool isActive = true );
|
||||
static QgsProperty fromField( const QString& fieldName, bool isActive = true );
|
||||
static QgsProperty fromValue( const QVariant& value, bool isActive = true );
|
||||
|
@ -191,6 +191,8 @@ class CORE_EXPORT QgsProperty
|
||||
*/
|
||||
QgsProperty();
|
||||
|
||||
virtual ~QgsProperty() = default;
|
||||
|
||||
/**
|
||||
* Returns a new ExpressionBasedProperty created from the specified expression.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user