diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 6 |
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 |