diff options
Diffstat (limited to 'chart2/source')
-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; } |