diff options
author | Armin Le Grand <alg@apache.org> | 2013-04-10 08:31:18 +0000 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2013-05-18 19:02:27 +0200 |
commit | 7d2c9ac5c12232c15d21ee83387c31847553de80 (patch) | |
tree | bbd4e9f56330247752cb9cddeab7e3e23d2586c8 /xmloff | |
parent | 14589274cd9999dd3f9ef844cc1aff20e106a977 (diff) |
i121972 Use svg rx/ry/cx/cy defines in draw:ellipse when used(cherry picked from commit 19abb8de7e218ba08b2fa79c0379844303da328a)
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 72f528b61e4b..7447e1760111 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -1231,6 +1231,15 @@ void SdXMLEllipseShapeContext::StartElement(const uno::Reference< xml::sax::XAtt 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(); |