Issue 124703

Summary: callout are misplaced.
Product: Impress Reporter: John Evans <JohnEvans>
Component: uiAssignee: Armin Le Grand <Armin.Le.Grand>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: Armin.Le.Grand, elish
Version: 4.1.0-beta   
Target Milestone: 4.2.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---
Attachments:
Description Flags
screenshot showing misplaces callouts
none
sample file with 3 callouts
none
PowerPoint 2010 vs. Impress 4.1 none

Description John Evans 2014-04-17 14:04:16 UTC
Created attachment 83221 [details]
screenshot showing misplaces callouts

Opening pptx file and callout don't point to the correct place.
Comment 1 Edwin Sharp 2014-04-17 14:11:54 UTC
Please attach a slide.
How was the file created?
Comment 2 John Evans 2014-04-23 16:07:49 UTC
Created attachment 83263 [details]
sample file with 3 callouts

I've created this presentation in Powerpoint for Mac 2011 with 3 callouts which point to the numbers on the page.  When I open it in OO 4.1 beta, the callouts appear in the correct position. However they should point to the number in the outline, but they point off the page to the left.
Comment 3 Edwin Sharp 2014-04-24 08:21:12 UTC
Confirmed with
AOO420m1(Build:9800)  -  Rev. 1586681
Rev.1586681
PowerPoint 2010
Win 7
Comment 4 Edwin Sharp 2014-04-24 08:23:54 UTC
Created attachment 83267 [details]
PowerPoint 2010 vs. Impress 4.1
Comment 5 Armin Le Grand 2014-04-24 10:52:35 UTC
It works when converting to ppt and loading that -> error in ooxml importer. Taking a look...
Comment 6 Armin Le Grand 2014-04-25 08:31:20 UTC
I am not sure in what units that coordinates for the position of the control point are; they *should* be relative to the CustomShape definition to work with formula stuff. When using like that it's close but not exactly what is expected.

@Edwin: Do you know if this ever worked before in any older AOO verson?
Comment 7 Edwin Sharp 2014-04-25 09:19:35 UTC
I don't know, sorry.
Comment 8 Armin Le Grand 2014-04-25 12:55:25 UTC
The ms control point coordinates are relative to the object center in the range [-50000 .. 50000] while our customshapes use a range from [0 .. 21600], so an adaption of the value is needed. Added that, doing some more checks...
Comment 9 SVN Robot 2014-04-25 12:59:17 UTC
"alg" committed SVN revision 1590014 into trunk:
i124703 adapt coordinate range from ms relative control points to aoo relativ...
Comment 10 Armin Le Grand 2014-04-25 12:59:56 UTC
Okay, done.