summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-11-27 13:53:59 +0100
committerArmin Le Grand <Armin.Le.Grand@cib.de>2018-11-29 08:55:54 +0100
commit12877c3ec0bb503dcd0d6d9b9aa83e2a1e5e7ac4 (patch)
treef72d1079a0fea55ed43df24634169c8f0ef3209c /sc
parent6ddc2fb9f476895706915bddbe7431400e773597 (diff)
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@cib.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/drawview.cxx12
1 files changed, 12 insertions, 0 deletions
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;
}