summaryrefslogtreecommitdiff
path: root/oox/source/xls/drawingbase.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-02-08 17:45:34 +0000
committerNoel Power <noel.power@novell.com>2012-02-08 17:51:53 +0000
commit4908c16a73b397f83c327789f113658c1ea4d904 (patch)
tree0f6e2f451fb311af332b08fdd76fb3de7cf94e4c /oox/source/xls/drawingbase.cxx
parent737a584d9a1cc29d2688871bdebbb0a7175c542c (diff)
handle row and column offsets for imported shape with cell anchor fdo#45266
This is an update to the previous commit ( for the same bug ) d3a26738b426846ee1a787e7c97280fc43002961
Diffstat (limited to 'oox/source/xls/drawingbase.cxx')
-rw-r--r--oox/source/xls/drawingbase.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/xls/drawingbase.cxx b/oox/source/xls/drawingbase.cxx
index 91ed337334b8..cfc9f32f861a 100644
--- a/oox/source/xls/drawingbase.cxx
+++ b/oox/source/xls/drawingbase.cxx
@@ -308,6 +308,12 @@ ShapeAnchor::applyToXShape( const ::com::sun::star::uno::Reference< ::com::sun::
{
PropertySet aShapeProp( rxShape );
aShapeProp.setProperty( PROP_Anchor, getFromCell() );
+ CellAnchorModel offSets;
+ offSets.mnColOffset = maFrom.mnColOffset;
+ offSets.mnRowOffset = maFrom.mnRowOffset;
+ EmuPoint aPos = calcCellAnchorEmu( offSets );
+ aShapeProp.setProperty( PROP_HoriOrientPosition, lclEmuToHmm( aPos.X ) );
+ aShapeProp.setProperty( PROP_VertOrientPosition, lclEmuToHmm( aPos.Y ) );
}
}