KoPathShape saveOdf and loadOdf oddities
Thorsten Zachmann
t.zachmann at zagge.de
Sun Jan 18 05:39:59 GMT 2015
Hello Stefano,
> Hello, we have a problem in Krita with drawing a polygon or a bezier curve
> (or basicly anything that uses KoPathShape) in a vector layer, then
> transform it so that the lines increase their thickness, then save the file
> in .kra format and then reload it: the thickness is not kept.
> I've found that this is because loadOdf does something different than
> saveOdf when loading and i don't get why.
> First it only loads some attributes back, then it checks for some specific
> element names (and in my tests i never entered in those ifs), then the
> transformation matrix is baked into the viewbox and the path geometry only,
> while the stroke is kept unchanged.
> This is wrong though because the original transformation, before saving,
> changed also the stroke thickness.
> Why baking the matrix into the path geometry only? Why loadOdf doesn't just
> do the "opposite" of what saveOdf do?
>
Seems the change of the transformation was done by Jan to help with fixing the
bug https://bugs.kde.org/show_bug.cgi?id=280348. Do you have a patch for which
I could run cstester to see if it would break anything.
Thorsten
More information about the calligra-devel
mailing list