Bug 59004

Summary: HSLF rendering - adjust values for presetShapeDefinition differs in HSLF/XSLF
Product: POI Reporter: Andreas Beeker <kiwiwings>
Component: HSLFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.14-dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 62381    
Attachments: HSLF hexagon file
XSLF hexagon file

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 
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 

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

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
Comment 5 Andreas Beeker 2019-05-10 20:56:03 UTC
Fixed via r1859102 ... finally :)