Apache OpenOffice (AOO) Bugzilla – Issue 121453
svg:viewBox uses width/height not right/bottom
Last modified: 2017-05-20 10:33:54 UTC
Created attachment 80013 [details] Example with negative values for min-x and min-y The attribute svg:viewBox uses the parameters <min-x>, <min-y>, <width> and <height>. But AOO interprets it as left/top/right/bottom. The problem becomes visible, if <min-x> or <min-y> are not zero. Insert the attached graphic and set the line property to Continuous, to see the edges of the object. The size of the yellow rectangle should be identical to the size of the object, because its size is identical to the viewBox.
ALG: Adding me to CC. You are right, the rason ViewBox was added at that time was to have a place for the unit; internally the translation is never used. Need to check that deeper and decide what *shoud* happen when the ViewBox values are used and are different from object's pos/size.
A fix is contained in the patch at bug 122600.
Object is now shown with correct width and height, for positive values for min-x and min-y as well.
verified in AOO 4.0.1 r1517538 and trunk r1517803.