Change in core[libreoffice-4-0]: export page/cell anchoring for xls drawing objects fdo#58360

Julien Nabet (via Code Review) gerrit at gerrit.libreoffice.org
Sat Jan 26 06:10:19 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1877

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/77/1877/1

export page/cell anchoring for xls drawing objects fdo#58360

Change-Id: I8f12ce4fedd3da76bab683ac85169186deeb89dc
---
M sc/source/filter/excel/xeescher.cxx
1 file changed, 5 insertions(+), 3 deletions(-)



diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx
index 32afdab..4221d0c 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -257,9 +257,11 @@
 
 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 )

-- 
To view, visit https://gerrit.libreoffice.org/1877
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8f12ce4fedd3da76bab683ac85169186deeb89dc
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Julien Nabet <serval2412 at yahoo.fr>
Gerrit-Reviewer: Noel Power <noel.power at suse.com>


More information about the LibreOffice mailing list