Re: KoPathShape saveOdf and loadOdf oddities

2015-01-23 Thread Dmitry Kazakov
The main question here is: "What is the meaning of KoShape::absoluteTransformation()?" It has two answers: 1) It is a transformation that applies *to control points of the shape only* . Pseudo code for painting in this case looks like that: QPainterPath path = shape->absoluteTransformation(...

Re: KoPathShape saveOdf and loadOdf oddities

2015-01-18 Thread Stefano Bonicatti
2015-01-18 6:39 GMT+01:00 Thorsten Zachmann : > Hello Stefano, > 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. Hello, i

Re: KoPathShape saveOdf and loadOdf oddities

2015-01-17 Thread Thorsten Zachmann
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

Re: KoPathShape saveOdf and loadOdf oddities

2015-01-17 Thread C. Boemann
On Saturday 17 January 2015 09:58:28 Stefano Bonicatti wrote: > 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 fo

Re: KoPathShape saveOdf and loadOdf oddities

2015-01-17 Thread Boudewijn Rempt
Well, afaict, the vector shape is what loads svg in krita, and that uses Qt's svg support. But if we save attributes into the odf with the koxmlns::svg namespace, that means we're actually mixing in svg properties in the odf, and we should load those properties when present. On Saturday 17 Janu

Re: KoPathShape saveOdf and loadOdf oddities

2015-01-17 Thread Stefano Bonicatti
2015-01-17 10:07 GMT+01:00 Boudewijn Rempt : > One possibility that springs to mind is that the work on using svg inside > flake actually never got properly finished. Jan started on it, did a ton of > work, but then real life caught up and he had to stop working on the > project. But if we save it

Re: KoPathShape saveOdf and loadOdf oddities

2015-01-17 Thread Boudewijn Rempt
On Saturday 17 January 2015 Jan 09:58:28 Stefano Bonicatti wrote: > 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 .kr

KoPathShape saveOdf and loadOdf oddities

2015-01-17 Thread Stefano Bonicatti
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 th