summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-18 13:58:49 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-23 09:19:04 +0100
commit2bf1955d769f60ddc94fb35bffde3ef09d9f047a (patch)
treeb85f29852dac4764c4748cd564c72581b1e9b917 /sd/source
parent5c416f82731432f4009c00eae629a85220e8eab9 (diff)
sd tiled rendering: draw documents have no slides view
With this, at least a simple .odg document is now loaded again without crashing. Change-Id: I47200ffec680aefc0ee7769f9311a550c0329dc7
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 028091292007..207079166330 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2353,8 +2353,11 @@ Size SdXImpressDocument::getDocumentSize()
void SdXImpressDocument::initializeForTiledRendering()
{
SolarMutexGuard aGuard;
- // tiled rendering works only when we are in the 'Normal' view, switch to that
- mpDocShell->GetViewShell()->GetViewFrame()->GetDispatcher()->Execute(SID_VIEWSHELL0, SfxCallMode::SYNCHRON | SfxCallMode::RECORD);
+
+ if (mbImpressDoc)
+ // tiled rendering works only when we are in the 'Normal' view, switch to that
+ mpDocShell->GetViewShell()->GetViewFrame()->GetDispatcher()->Execute(SID_VIEWSHELL0, SfxCallMode::SYNCHRON | SfxCallMode::RECORD);
+
mpDoc->setTiledRendering(true);
}