Merge pull request #284 from KLayout/issue-278

Fixed #278 (lost reference to Shape object from ObjectInstPath)
This commit is contained in:
Matthias Köfferlein 2019-06-18 18:44:13 +02:00 committed by GitHub
commit fcec51e936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ();
}