diff options
author | Noel Power <noel.power@novell.com> | 2012-05-04 12:32:46 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-05-04 12:36:00 +0100 |
commit | 76bab166e21bc3646ae2d3079aae2c5d9ce0d1e5 (patch) | |
tree | d5e30abdca6cd3b08c79960eaa471d896c534266 /sc/source/filter/oox/drawingfragment.cxx | |
parent | e3ef482153bd1620c93019a413a18665ef0ebb98 (diff) |
reorganise code a little so ole controls are catered for wrt fdo#49430
Change-Id: Ifb2c0a97f85884c459b1e7bc4616154c0e4aea2a
Diffstat (limited to 'sc/source/filter/oox/drawingfragment.cxx')
-rw-r--r-- | sc/source/filter/oox/drawingfragment.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/oox/drawingfragment.cxx b/sc/source/filter/oox/drawingfragment.cxx index 012c9a19a3d0..977c8debbd35 100644 --- a/sc/source/filter/oox/drawingfragment.cxx +++ b/sc/source/filter/oox/drawingfragment.cxx @@ -614,12 +614,6 @@ Reference< XShape > VmlDrawing::createAndInsertClientXShape( const ::oox::vml::S getBaseFilter().getVbaProject().registerMacroAttacher( xAttacher ); } } - if ( !pClientData->maAnchor.isEmpty() ) - { - ShapeAnchor aAnchor( *this ); - aAnchor.importVmlAnchor( pClientData->maAnchor ); - aAnchor.applyToXShape( xShape ); - } return xShape; } } @@ -637,6 +631,12 @@ void VmlDrawing::notifyXShapeInserted( const Reference< XShape >& rxShape, // convert settings from VML client data if( const ::oox::vml::ClientData* pClientData = rShape.getClientData() ) { + if ( !pClientData->maAnchor.isEmpty() ) + { + ShapeAnchor aAnchor( *this ); + aAnchor.importVmlAnchor( pClientData->maAnchor ); + aAnchor.applyToXShape( rxShape ); + } // specific settings for embedded form controls try { |