summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2015-06-10 18:08:48 -0400
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-06-11 10:37:26 +0200
commita6f4fde8baf3eeb36820d18ffad84192e995145f (patch)
tree87ece0b64ed291b07605ef5b794dfbae02b9c3a8 /sw
parent0c87f8bf42ba0338dbf6516dc9539223a5dedf4c (diff)
sw tiled rendering: Ignore window size check.
In the tiled rendering case it does not need to check if the window size is (0,0). But it still has to trigger LOKit LOK_CALLBACK_INVALIDATE_TILES Change-Id: I4c458edfd6e44599b8c8148e0f8543fb0563e627
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx4
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx9
2 files changed, 3 insertions, 10 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index d2c42ae9aa41..95e8b37f8205 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -6203,7 +6203,9 @@ void SwEditWin::LogicInvalidate(const Rectangle* pRectangle)
sRectangle = "EMPTY";
else
sRectangle = pRectangle->toString();
- m_rView.GetWrtShell().libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
+
+ if ( m_rView.GetWrtShellPtr() )
+ m_rView.GetWrtShell().libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
}
void SwEditWin::LogicMouseButtonDown(const MouseEvent& rMouseEvent)
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index e89ef6d42781..4f7731a6a6fb 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3157,15 +3157,6 @@ void SwXTextDocument::initializeForTiledRendering()
SwViewShell* pViewShell = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell();
pViewShell->setTiledRendering(true);
- if ( pViewShell->GetWin() )
- {
- // Check initial window size and set minimal size (1,1)
- Size aSize( pViewShell->GetWin()->GetOutputSizePixel() );
- if ( aSize.Width() == 0 || aSize.Height() == 0 )
- pViewShell->GetWin()->SetOutputSizePixel(Size( std::max( aSize.Width() , long(1)),
- std::max( aSize.Height(), long(1)) ));
- }
-
bool bBookMode = false;
sal_Int16 nColumns = 1;