diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-08-24 13:26:13 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2014-08-24 13:34:34 +0300 |
commit | a75e0f8e4e5f0baa5805d01c5f8edc7b40fceb0f (patch) | |
tree | f41c4253253d4be012b6b2b8932469fd044ddaa9 /sfx2 | |
parent | 10d14a94d104504f0bb43688857296aed7b80b7f (diff) |
fdo#80755 Don't generate thumbnails for encrypted files
Change-Id: If52532b8e8ca38e82fd95c13080d521d9cb529aa
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/sfxpicklist.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx index c405a7ef1e9a..bd965ad423e4 100644 --- a/sfx2/source/appl/sfxpicklist.cxx +++ b/sfx2/source/appl/sfxpicklist.cxx @@ -196,7 +196,9 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh ) OUString aThumbnail; // don't generate thumbnail when in headless mode, or on non-desktop (?) #if HAVE_FEATURE_DESKTOP - if (!pDocSh->IsModified() && !Application::IsHeadlessModeEnabled()) + SFX_ITEMSET_ARG( pMed->GetItemSet(), pEncryptionDataItem, SfxUnoAnyItem, SID_ENCRYPTIONDATA, false ); + + if (!pDocSh->IsModified() && !pEncryptionDataItem && !Application::IsHeadlessModeEnabled()) { // not modified => the document matches what is in the shell boost::shared_ptr<GDIMetaFile> pMetaFile = pDocSh->GetPreviewMetaFile(); |