-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Region.sized after .smooth returns empty region on 0.28.4 #1275
Comments
I believe this should never have worked. If you look at the docs smooth returns void (and always did according to the docs iirc). https://klayout.de/doc-qt5/code/class_Region.html#method198 . Same with I have wondered in the past about this. @klayoutmatthias would it be possible to standardize the return types (my preference would be that they return |
I am terribly sorry, this is a bug I have introduced in 0.28.4 during the enabling of user properties. I'm in release mood anyway, so I'll quickly generate a 0.28.5 release with that bug fixed. |
Fixed issue #1275 (size after smooth does not work)
Thank you for the quick fix, amazing work! |
Is fixed with 0.28.5 |
….28.4 issue See KLayout issue KLayout/klayout#1275.
Here is a pretty obscure bug report!
It looks like on 0.28.4,
Region.smooth
does something that prevents furthersize
orsized
operations on the region to work as expected.Try the following macro:
On 0.28.4, the output is
On 0.28.3 it works correctly ("Sized after smooth" is the same as "Sized after smoothed").
It seems related to in-place editing in
smooth
having some side-effect. Re-creating the Region object as follows also fixes the issue:The text was updated successfully, but these errors were encountered: