diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-04-25 19:56:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-04-25 20:03:48 +0200 |
commit | 3b2ec44912ca2e0548d8078d2edf17fa10856553 (patch) | |
tree | d90a1f26a3a85799a9cfeef3167a98e7b3afa819 /chart2 | |
parent | 12ace5060dbef6add5521fb932d78e7807c793be (diff) |
the chart root shape has to be at the bottom, fdo#74333, cp#1000057
Change-Id: Ic99fec987f290e94e4b45f4d193406daa2de4740
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ShapeFactory.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx index b51f1970a849..892c4b3d155f 100644 --- a/chart2/source/view/main/ShapeFactory.cxx +++ b/chart2/source/view/main/ShapeFactory.cxx @@ -66,10 +66,15 @@ uno::Reference< drawing::XShapes > ShapeFactory::getOrCreateChartRootShape( uno::Reference< drawing::XShapes > xRet( ShapeFactory::getChartRootShape( xDrawPage ) ); if( !xRet.is() ) { - //create the root shape - xRet = this->createGroup2D( - uno::Reference<drawing::XShapes>( xDrawPage, uno::UNO_QUERY ) - , "com.sun.star.chart2.shapes" ); + uno::Reference< drawing::XShape > xShape( m_xShapeFactory->createInstance( + "com.sun.star.drawing.GroupShape" ), uno::UNO_QUERY ); + uno::Reference< drawing::XShapes2 > xShapes2(xDrawPage, uno::UNO_QUERY_THROW); + xShapes2->addBottom(xShape); + + setShapeName( xShape, "com.sun.star.chart2.shapes" ); + xShape->setSize(awt::Size(0,0)); + + xRet = uno::Reference<drawing::XShapes>( xShape, uno::UNO_QUERY ); } return xRet; } |