diff options
Diffstat (limited to 'sc/source/ui/view/prevwsh.cxx')
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index dbb23ca68e42..86986ee99fb6 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -21,6 +21,7 @@ #include <scitems.hxx> +#include <comphelper/SetFlagContextHelper.hxx> #include <sfx2/app.hxx> #include <editeng/sizeitem.hxx> #include <svx/zoomslideritem.hxx> @@ -916,6 +917,10 @@ void ScPreviewShell::ReadUserData(const OUString& rData, bool /* bBrowse */) void ScPreviewShell::WriteUserDataSequence(uno::Sequence < beans::PropertyValue >& rSeq) { + // tdf#130559: don't export preview view data if active + if (comphelper::IsContextFlagActive("NoPreviewData")) + return; + rSeq.realloc(3); beans::PropertyValue* pSeq = rSeq.getArray(); sal_uInt16 nViewID(GetViewFrame()->GetCurViewId()); |