Closed GoogleCodeExporter closed 9 years ago
I believe the issue to be with simpletransform.parseTransform(). It appears to
only parse the *first* transform in the transform string. I've made a
parseTransforms() which handles all the transforms in the string. How's this
an issue? In some cases, Inkscape puts in both an explicit transform and an
implicit transform when it uses <use>. For example,
<use x="123" y="345" transform="translate(10,100)" ... />
Those x and y coordinates are an implicit transform and the resulting combined
transform is
translate(10,100) translate(123,345)
But simpletransform.parseTransform() only parses the first translate out of
that transform.
I have a code fix which I will test later today.
Original comment by newman.d...@gmail.com
on 26 Nov 2010 at 9:28
Fixed, but the problem was somewhat different than I first surmised. Yes,
parseTransform() only saw the first transform in the list of two transforms.
However, the explicit transform had already been done by code elsewhere in
recursivelyTraverseSvg(). So, the implicit transform was not being seen and
the explicit transform was being done twice.
Anyhow, I believe I've fixed this and tested it as well.
Original comment by newman.d...@gmail.com
on 27 Nov 2010 at 1:06
Original issue reported on code.google.com by
newman.d...@gmail.com
on 26 Nov 2010 at 5:02