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@yahoo.fr>
Gerrit-Reviewer: Noel Power <noel.power@suse.com>
Context
- Change in core[libreoffice-4-0]: export page/cell anchoring for xls drawing objects fdo#58360 · Julien Nabet (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.