diff --git a/src/db/db/dbGenericShapeIterator.h b/src/db/db/dbGenericShapeIterator.h index 570cb58e1..4e44681b6 100644 --- a/src/db/db/dbGenericShapeIterator.h +++ b/src/db/db/dbGenericShapeIterator.h @@ -495,7 +495,11 @@ private: void set () { - m_object = db::object_with_properties (*m_basic, m_basic.prop_id ()); + if (! at_end ()) { + m_object = db::object_with_properties (*m_basic, m_basic.prop_id ()); + } else { + m_object = db::object_with_properties (); + } } };