[Libreoffice-commits] core.git: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 29 07:56:20 UTC 2018
sc/source/ui/view/drawview.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 12877c3ec0bb503dcd0d6d9b9aa83e2a1e5e7ac4
Author: Armin Le Grand <Armin.Le.Grand at cib.de>
AuthorDate: Tue Nov 27 13:53:59 2018 +0100
Commit: Armin Le Grand <Armin.Le.Grand at cib.de>
CommitDate: Thu Nov 29 08:55:54 2018 +0100
No GridOffset support for PDF or Print
Change-Id: I40c1128ef2fb8860e883016344138bb84f68c2de
Reviewed-on: https://gerrit.libreoffice.org/64112
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand at cib.de>
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 28af22f58c34..a19d7ce48c84 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -1181,6 +1181,18 @@ namespace sdr
bool ObjectContactOfScDrawView::supportsGridOffsets() const
{
+ // no GridOffset support for printer
+ if(isOutputToPrinter())
+ {
+ return false;
+ }
+
+ // no GridOffset support for PDF export
+ if(isOutputToPDFFile())
+ {
+ return false;
+ }
+
// yes - we support it
return true;
}
More information about the Libreoffice-commits
mailing list