diff options
author | Noel Power <noel.power@suse.com> | 2013-01-25 15:17:47 +0000 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-01-25 15:23:14 +0000 |
commit | 701cc2aa454b700f9e837d9ee3043598505a1405 (patch) | |
tree | c510f136dde7026397e7d8caf18a06a2a4cb9651 /sc | |
parent | import page/cell anchoring for xlsx drawing objects fdo#58360 (diff) | |
download | core-701cc2aa454b700f9e837d9ee3043598505a1405.tar.gz core-701cc2aa454b700f9e837d9ee3043598505a1405.zip |
export page/cell anchoring for xls drawing objects fdo#58360
Change-Id: I8f12ce4fedd3da76bab683ac85169186deeb89dc
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xeescher.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx index 32afdaba7d32..4221d0c40e90 100644 --- a/sc/source/filter/excel/xeescher.cxx +++ b/sc/source/filter/excel/xeescher.cxx @@ -257,9 +257,11 @@ XclExpDffSheetAnchor::XclExpDffSheetAnchor( const XclExpRoot& rRoot ) : void XclExpDffSheetAnchor::ImplSetFlags( const SdrObject& rSdrObj ) { - // Special case "page anchor" (X==0,Y==1) -> lock pos and size. - const Point& rPos = rSdrObj.GetAnchorPos(); - mnFlags = ((rPos.X() == 0) && (rPos.Y() == 1)) ? EXC_ESC_ANCHOR_LOCKED : 0; + // set flags for cell/page anchoring + if ( ScDrawLayer::GetAnchorType( rSdrObj ) == SCA_CELL ) + mnFlags = 0; + else + mnFlags = EXC_ESC_ANCHOR_LOCKED; } void XclExpDffSheetAnchor::ImplCalcAnchorRect( const Rectangle& rRect, MapUnit eMapUnit ) |