Issue 120468 - parameter of handle-polar have wrong order compared to ODF
Summary: parameter of handle-polar have wrong order compared to ODF
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 09:00 UTC by Regina Henschel
Modified: 2014-03-18 10:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
unpack and read content.xml (10.81 KB, application/vnd.oasis.opendocument.graphics)
2012-08-06 09:00 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2012-08-06 09:00:39 UTC
Created attachment 78856 [details]
unpack and read content.xml

In ODF1.2 section 19.179 draw:handle-position the order of radius and angle is defined as,
"If the draw:handle-polar attribute is set, then a handle is a polar handle and the first parameter of the draw:handle-position attribute specifies the angle (as defined in 18.3.1), the handle radius is specified by the second parameter."

But AOO writes it the other way round, first the radius and then the angle.
Comment 1 Regina Henschel 2012-12-09 21:45:51 UTC
Calligra writes it the way it is defined in the spec: first angle, second radius. So it is unlikely, that the spec will be changed.
Comment 2 Rainer Bielefeld 2013-06-01 08:06:30 UTC
My knowledge is not sufficient to follow Regina's analysis in all details, but at least I can confirm syntax differences in
Calligra:
<draw:handle draw:handle-position="$0 10800" draw:handle-polar="10800 10800"
AOO:
<draw:handle draw:handle-polar="10800 10800" draw:handle-position="10800 $0" 

Due to other observations in the content.xml code I reaon that "10800" seems to be a distance (whatever the unit might be) and "$0","$0" are angles.

So "draw:handle-position" has radius as first parameter and angle as second parameter, what is the opposite of the ODF definition

Not new, already OOo 2.0 already uses the same syntax.

Additional info:
----------------
When I open reporter's sample after having saved it from Calligra in AOO the handles are shown more or less at the center of the circle shape.