Bug 59004 - HSLF rendering - adjust values for presetShapeDefinition differs in HSLF/XSLF
Summary: HSLF rendering - adjust values for presetShapeDefinition differs in HSLF/XSLF
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.14-dev
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks: 62381
  Show dependency tree
 
Reported: 2016-02-14 21:52 UTC by Andreas Beeker
Modified: 2018-05-16 20:33 UTC (History)
0 users



Attachments
HSLF hexagon file (68.50 KB, application/vnd.ms-powerpoint)
2016-02-14 21:52 UTC, Andreas Beeker
Details
XSLF hexagon file (14.61 KB, application/zip)
2016-02-14 21:52 UTC, Andreas Beeker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Beeker 2016-02-14 21:52:08 UTC
Common SL renders office draw shapes based on the presetShapeDefinition.xml
Usually the adjust values seem to be the same for HSLF/XSLF.
There a certain shape types, which have a different calculation for the formats,
e.g. hexagon. 

The "adj" value for a hexagon varies from 0-10800 in HSLF whereas this value is 
dependent
on the size of the shape.

There are a few msdn entries about a similar issue, but currently I don't 
understand the
connection between height/width size/aspect and the adjust values.

Libre Office is displaying the shapes correct, but I haven't yet checked their 
source.

In the attached example, the adj value for HSLF is 8635 and for XSLF it's 39977.

[1] 
https://social.msdn.microsoft.com/Forums/en-US/3f69ebb3-62a0-4fdd-b367-64790dfb2491/presetshapedefinitionsxml-does-not-specify-width-and-height-form-some-autoshapes?forum=os_binaryfile
https://social.msdn.microsoft.com/Forums/en-US/71e7383e-e07d-4d2c-be6c-1390387b4cfe/unspecified-width-and-height-in-presetshapegeometriesxml?forum=os_binaryfile
Comment 1 Andreas Beeker 2016-02-14 21:52:14 UTC
Created attachment 33554 [details]
HSLF hexagon file
Comment 2 Andreas Beeker 2016-02-14 21:52:17 UTC
Created attachment 33555 [details]
XSLF hexagon file