Closed user202729 closed 8 months ago
Do the following:
print(1)
However,
The problem is that, even though print(1) does not change anything of the canvas, Inkscape register it as a change.
This is because the method
@classmethod def _from_inkex_object(self, iobj): '''Create a Simple Inkscape Scripting SimpleGuide from an inkex Guide object.'''
does not store the original iobj, rather, it creates a new object with a new id, so that Inkscape thinks that something changed.
iobj
id
Thanks for the bug report and for tracking down the source of the problem. In a moment I'll upload a version of the code that uses the original iobj instead of creating a new one.
Problem
Do the following:
print(1)
.However,
print(1)
.The problem is that, even though
print(1)
does not change anything of the canvas, Inkscape register it as a change.This is because the method
does not store the original
iobj
, rather, it creates a new object with a newid
, so that Inkscape thinks that something changed.