failure to account for rotation/translation in custom shape import
Submitted by an unknown user
Link to original bug (#690875)
Description
Created attachment 232382 sample file
In the attached sample file we have for the diamond:
<draw:custom-shape draw:z-index="0" draw:style-name="gr1" svg:width="7.241cm" svg:height="6.986cm" draw:transform="rotate (0.523598775598299) translate (8.593cm 4.352cm)"> text:p/ <draw:enhanced-geometry svg:viewBox="0 0 21600 21600" draw:glue-points="10800 0 0 10800 10800 21600 21600 10800" draw:text-areas="5400 5400 16200 16200" draw:type="diamond" draw:enhanced-path="M 10800 0 L 21600 10800 10800 21600 0 10800 10800 0 Z N"/> </draw:custom-shape>
On import we ignore draw:transform="rotate (0.523598775598299) translate (8.593cm 4.352cm)", so the diamond is not correctly rotated nor translated.
Ideally, for the rotation we should be able to rotate the whole sheet object.
Attachment 232382, "sample file":
U.ods
Version: git master