mirror of https://github.com/KLayout/klayout.git
Merge pull request #284 from KLayout/issue-278
Fixed #278 (lost reference to Shape object from ObjectInstPath)
This commit is contained in:
commit
fcec51e936
|
|
@ -229,7 +229,7 @@ gsi::Class<lay::ObjectInstPath> decl_ObjectInstPath ("lay", "ObjectInstPath",
|
||||||
"\n"
|
"\n"
|
||||||
"This method has been introduced in version 0.24."
|
"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"
|
"@brief Gets the shape object that describes the selected shape geometrically\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This method delivers valid results only for object selections that represent shapes, i.e for "
|
"This method delivers valid results only for object selections that represent shapes, i.e for "
|
||||||
|
|
|
||||||
|
|
@ -362,7 +362,7 @@ pya_plain_iterator_next (PyObject *self)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// increment on first visit
|
// increment except on first visit
|
||||||
if (! iter->first) {
|
if (! iter->first) {
|
||||||
iter->iter->inc ();
|
iter->iter->inc ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue