summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/oox/drawingml/shape.hxx1
-rw-r--r--oox/source/drawingml/shape.cxx7
-rw-r--r--oox/source/ppt/extdrawingfragmenthandler.cxx4
3 files changed, 2 insertions, 10 deletions
diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx
index dbe17c149267..95108e7b31e2 100644
--- a/include/oox/drawingml/shape.hxx
+++ b/include/oox/drawingml/shape.hxx
@@ -101,7 +101,6 @@ public:
void setChildPosition( com::sun::star::awt::Point nPosition ){ maChPosition = nPosition; }
void setChildSize( com::sun::star::awt::Size aSize ){ maChSize = aSize; }
- void moveAllToPosition( const com::sun::star::awt::Point &rPoint );
void setPosition( com::sun::star::awt::Point nPosition ){ maPosition = nPosition; }
const com::sun::star::awt::Point& getPosition() const { return maPosition; }
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index d8d127a48ea4..44a43ff4c531 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -665,13 +665,6 @@ TextBodyPtr Shape::getTextBody()
return mpTextBody;
}
-void Shape::moveAllToPosition( const awt::Point &rPoint )
-{
- setPosition( awt::Point( rPoint.X + maPosition.X, rPoint.Y + maPosition.Y ) );
- for( ::std::vector<ShapePtr>::const_iterator aIt = maChildren.begin(), aEnd = maChildren.end();aIt != aEnd; ++aIt )
- (*aIt)->moveAllToPosition( rPoint );
-}
-
void Shape::setMasterTextListStyle( const TextListStylePtr& pMasterTextListStyle )
{
SAL_INFO("oox.drawingml", OSL_THIS_FUNC << "set master text list style to shape id: " << msId);
diff --git a/oox/source/ppt/extdrawingfragmenthandler.cxx b/oox/source/ppt/extdrawingfragmenthandler.cxx
index e6d4b2f5ce97..9fbf0a55f29f 100644
--- a/oox/source/ppt/extdrawingfragmenthandler.cxx
+++ b/oox/source/ppt/extdrawingfragmenthandler.cxx
@@ -48,7 +48,7 @@ ExtDrawingFragmentHandler::onCreateContext( ::sal_Int32 aElement,
case DSP_TOKEN( spTree ):
mpShapePtr = oox::drawingml::ShapePtr( new PPTShape( meShapeLocation, "com.sun.star.drawing.GroupShape" ) );
return new PPTShapeGroupContext(
- *this, mpSlidePersistPtr, meShapeLocation, mpSlidePersistPtr->getShapes(),
+ *this, mpSlidePersistPtr, meShapeLocation, mpGroupShapePtr,
mpShapePtr );
default:
break;
@@ -60,7 +60,7 @@ void SAL_CALL ExtDrawingFragmentHandler::endDocument() throw (::com::sun::star::
{
if( mpShapePtr )
{
- mpShapePtr->moveAllToPosition( mpOrgShapePtr->getPosition() );
+ mpShapePtr->setPosition( mpOrgShapePtr->getPosition() );
mpShapePtr->setName( mpOrgShapePtr->getName() );
}
}