summaryrefslogtreecommitdiffstats
path: root/src/core/geometry/qgeometry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/geometry/qgeometry.cpp')
-rw-r--r--src/core/geometry/qgeometry.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/geometry/qgeometry.cpp b/src/core/geometry/qgeometry.cpp
index 16e204bbc..4e8dcacac 100644
--- a/src/core/geometry/qgeometry.cpp
+++ b/src/core/geometry/qgeometry.cpp
@@ -220,7 +220,8 @@ void QGeometry::removeAttribute(QAttribute *attribute)
{
Q_ASSERT(attribute);
Q_D(QGeometry);
- d->m_attributes.removeOne(attribute);
+ if (!d->m_attributes.removeOne(attribute))
+ return;
// Remove bookkeeping connection
d->unregisterDestructionHelper(attribute);
d->update();