Measure Path extension and transform attribute
Hi,
I'm trying to fix bug #308183 (Measure Path text shifted when used with a copied object, https://bugs.launchpad.net/inkscape/+bug/308183), related to measure.py extension:
"Some objects (stars, spirals, circles, but NOT rectangles and freehands) have a transform attribute (translate) when copied. When using Visualize Path>Measure Path, the text gets this attribute, which is thus applied twice (one on the object and one on the text). That's the reason why the text appears shifted on the canvas."
Does someone know why this transform attribute is copied from the original shape to the generated text? Removing it in measure.py resolves the bug and doesn't seem to break something else (the text is linked to the object with xlink:href). But it's in the code from the beginning...
Thanks! -- Nicolas
On Mon, Aug 10, 2009 at 4:09 PM, Nicolas Dufour<nicoduf@...48...> wrote:
Does someone know why this transform attribute is copied from the original shape to the generated text? Removing it in measure.py resolves the bug and doesn't seem to break something else (the text is linked to the object with xlink:href). But it's in the code from the beginning...
Most likely it was an untested assumption by the script author. If you tested the fix and it works, be bold and commit :)
participants (2)
-
bulia byak
-
Nicolas Dufour