From 3b2ec44912ca2e0548d8078d2edf17fa10856553 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 25 Apr 2014 19:56:36 +0200 Subject: the chart root shape has to be at the bottom, fdo#74333, cp#1000057 Change-Id: Ic99fec987f290e94e4b45f4d193406daa2de4740 --- chart2/source/view/main/ShapeFactory.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'chart2/source/view/main/ShapeFactory.cxx') 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( 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( xShape, uno::UNO_QUERY ); } return xRet; } -- cgit