Fixed #278 (lost reference to Shape object from ObjectInstPath)

This commit is contained in:
Matthias Koefferlein 2019-06-17 23:37:35 +02:00
parent f59e49d678
commit 2fd43ec656
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ gsi::Class<lay::ObjectInstPath> decl_ObjectInstPath ("lay", "ObjectInstPath",
"\n"
"This method has been introduced in version 0.24."
) +
gsi::method ("shape", (db::Shape &(lay::ObjectInstPath::*) ()) &lay::ObjectInstPath::shape,
gsi::method ("shape", (const db::Shape &(lay::ObjectInstPath::*) () const) &lay::ObjectInstPath::shape,
"@brief Gets the shape object that describes the selected shape geometrically\n"
"\n"
"This method delivers valid results only for object selections that represent shapes, i.e for "

View File

@ -362,7 +362,7 @@ pya_plain_iterator_next (PyObject *self)
return NULL;
}
// increment on first visit
// increment except on first visit
if (! iter->first) {
iter->iter->inc ();
}