summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2017-06-24 14:03:41 +0200
committerTamás Bunth <btomi96@gmail.com>2017-06-24 16:24:38 +0200
commit1ac1caff62d0d72d158a2fafb3f06b7ec18cb346 (patch)
treeed625da4de0d408f86f73cf077a5a1a9121e57d4 /vbahelper/source
parent50f4e1883c2e9eb8ec25ad9095889fc7699440dd (diff)
oovbaapi: use autoshape in case of EllipseShape
Required for msoShapeOval autoshape type Change-Id: I62ef053e8f387f4d87b28b7d17b82209d28fe0fd Reviewed-on: https://gerrit.libreoffice.org/39209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/vbahelper/vbashape.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index b1c43e08d1e4..ca012370267c 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -144,7 +144,9 @@ ScVbaShape::getType( const css::uno::Reference< drawing::XShape >& xShape )
}
else if( sShapeType == "com.sun.star.drawing.LineShape" )
return office::MsoShapeType::msoLine;
- else if( sShapeType == "com.sun.star.drawing.CustomShape" || sShapeType == "com.sun.star.drawing.RectangleShape" )
+ else if( sShapeType == "com.sun.star.drawing.CustomShape"
+ || sShapeType == "com.sun.star.drawing.RectangleShape"
+ || sShapeType == "com.sun.star.drawing.EllipseShape" )
return office::MsoShapeType::msoAutoShape;
else if( sShapeType == "com.sun.star.drawing.TextShape" )
return office::MsoShapeType::msoTextBox;