Author: alg Date: Wed Apr 10 09:31:18 2013 New Revision: 1466400 URL: http://svn.apache.org/r1466400 Log: i121972 Use svg rx/ry/cx/cy defines in draw:ellipse when used
Modified: openoffice/trunk/main/xmloff/source/draw/ximpshap.cxx Modified: openoffice/trunk/main/xmloff/source/draw/ximpshap.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/xmloff/source/draw/ximpshap.cxx?rev=1466400&r1=1466399&r2=1466400&view=diff ============================================================================== --- openoffice/trunk/main/xmloff/source/draw/ximpshap.cxx (original) +++ openoffice/trunk/main/xmloff/source/draw/ximpshap.cxx Wed Apr 10 09:31:18 2013 @@ -1224,6 +1224,15 @@ void SdXMLEllipseShapeContext::StartElem SetStyle(); SetLayer(); + if(mnCX != 0 || mnCY != 0 || mnRX != 1 || mnRY != 1) + { + // #121972# center/radius is used, put to pos and size + maSize.Width = 2 * mnRX; + maSize.Height = 2 * mnRY; + maPosition.X = mnCX - mnRX; + maPosition.Y = mnCY - mnRY; + } + // set pos, size, shear and rotate SetTransformation();