View Issue Details

IDProjectCategoryView StatusLast Update
0015538ScribusImport / Exportpublic2019-01-16 17:19
ReporterRegina Henschel Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version1.5.4 
Summary0015538: angle in <draw:custom-shape> in .odg are handled different in path command U and V
DescriptionHi,

my .odg document has two shapes, where I think, that they should look the same, but they do not.

Do you have used the ODF specification to determine the rendering? Or do you try to mimic some other application?
Of is my opinion, that the shapes should look the same, wrong; and if yes, why?

The essential part of the <draw:custom-shape> elements is
left shape
--------------
<draw:enhanced-geometry svg:viewBox="0 0 21600 21600" draw:glue-point-type="segments" draw:type="non-primitive" draw:modifiers="30 75" draw:enhanced-path="V 0 0 21600 21600 ?f1 ?f3 ?f5 ?f7 L 10800 10800 N">
    <draw:equation draw:name="f0" draw:formula="10800*cos($0 *(pi/180))"/>
    <draw:equation draw:name="f1" draw:formula="?f0 +10800"/>
    <draw:equation draw:name="f2" draw:formula="10800*sin($0 *(pi/180))"/>
    <draw:equation draw:name="f3" draw:formula="?f2 +10800"/>
    <draw:equation draw:name="f4" draw:formula="10800*cos($1 *(pi/180))"/>
    <draw:equation draw:name="f5" draw:formula="?f4 +10800"/>
    <draw:equation draw:name="f6" draw:formula="10800*sin($1 *(pi/180))"/>
    <draw:equation draw:name="f7" draw:formula="?f6 +10800"/>
    <draw:handle draw:handle-position="10800 $0" draw:handle-polar="10800 10800"/>
    <draw:handle draw:handle-position="10800 $1" draw:handle-polar="10800 10800"/>
</draw:enhanced-geometry>

right shape
----------------
<draw:enhanced-geometry svg:viewBox="0 0 21600 21600" draw:glue-point-type="segments" draw:type="non-primitive" draw:modifiers="30 75" draw:enhanced-path="U 10800 10800 10800 10800 $0 $1 L 10800 10800 N">
    <draw:handle draw:handle-position="10800 $0" draw:handle-polar="10800 10800"/>
    <draw:handle draw:handle-position="10800 $1" draw:handle-polar="10800 10800"/>
</draw:enhanced-geometry>
Steps To ReproduceOpen attached file and see.
TagsNo tags attached.
PatchNo

Activities

Regina Henschel

2019-01-16 14:39

reporter  

Angle.odg (10,259 bytes)

jghali

2019-01-16 16:23

administrator   ~0045798

I do not have LibreOffice installed, but when opening that odg, OpenOffice does not show these shapes in the same way either.
Cannot explain why myself and we have not seen the developer who wrote the custom shapes parser in a while.
odg_custom_shape.png (110,919 bytes)   
odg_custom_shape.png (110,919 bytes)   

Regina Henschel

2019-01-16 16:43

reporter   ~0045800

Who wrote the custom shapes parser?

jghali

2019-01-16 17:19

administrator   ~0045801

Franz Schmid

Issue History

Date Modified Username Field Change
2019-01-16 14:39 Regina Henschel New Issue
2019-01-16 14:39 Regina Henschel File Added: Angle.odg
2019-01-16 16:23 jghali File Added: odg_custom_shape.png
2019-01-16 16:23 jghali Note Added: 0045798
2019-01-16 16:43 Regina Henschel Note Added: 0045800
2019-01-16 17:19 jghali Note Added: 0045801