summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.cxx
diff options
context:
space:
mode:
authorchristianju <christianjunker@gmail.com>2014-02-10 02:30:48 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-03-03 17:38:33 +0100
commit0035b3218d8652652e62afe89eddfd28a9021b75 (patch)
tree3ea9fc13cab8197bb4a2b48a9f633f9f0efa1052 /sfx2/source/doc/objstor.cxx
parentec39578e5cb4b7e81bf5c539c248966d609c7257 (diff)
fdo#61320: Allow user to choose whether to create thumbnails inside odf.
Change-Id: I8c8129534ebcca32941ad76b201bb9a0243d8c3e
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 965297c96112..883b75d3bcfb 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -99,6 +99,7 @@
#include <vcl/bitmapex.hxx>
#include <svtools/embedhlp.hxx>
#include <basic/modsizeexceeded.hxx>
+#include <officecfg/Office/Common.hxx>
#include <osl/file.hxx>
#include <sfx2/signaturestate.hxx>
@@ -1450,8 +1451,9 @@ sal_Bool SfxObjectShell::SaveTo_Impl
}
}
-
- if ( bOk && GetCreateMode() != SFX_CREATE_MODE_EMBEDDED && !bPasswdProvided )
+ //fdo#61320: only store thumbnail image if the corresponding option is not disabled in the configuration
+ if ( bOk && officecfg::Office::Common::Save::Document::GenerateThumbnail::get()
+ && GetCreateMode() != SFX_CREATE_MODE_EMBEDDED && !bPasswdProvided )
{
// store the thumbnail representation image
// the thumbnail is not stored in case of encrypted document