summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-03-18 20:49:24 +0200
committerTor Lillqvist <tml@collabora.com>2014-03-18 20:59:47 +0200
commit3de77b853bdda5205460fc04942b4f99079e03f3 (patch)
tree60326d2cd3f2df944d03f9f8e63f00c90ed08098 /sfx2
parent887ab6d0832397e0bc7cc1d7f1d43ce6f4e92509 (diff)
Don't bother creating thumbnails on non-desktop, at least for now
It seems that it was the thumbmail creation which through some mechanism caused the blank tile problem for the first tile(s) for some documents in TiledLibreOffice. Go figure. Change-Id: I2b3d64e0bbd3bf39023c67aed56992048ea4ebcf
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/sfxpicklist.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index fcdcee199522..fa2a848a8987 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <unotools/historyoptions.hxx>
#include <unotools/useroptions.hxx>
@@ -192,7 +194,8 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
// generate a thumbnail
OUString aThumbnail;
- // don't generate thumbnail when in headless mode
+ // don't generate thumbnail when in headless mode, or on non-desktop (?)
+#if HAVE_FEATURE_DESKTOP
if (!pDocSh->IsModified() && !Application::IsHeadlessModeRequested())
{
// not modified => the document matches what is in the shell
@@ -211,7 +214,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
}
}
}
-
+#endif
// add to svtool history options
SvtHistoryOptions().AppendItem( ePICKLIST,
aURL.GetURLNoPass( INetURLObject::NO_DECODE ),