sw/source/uibase/uno/unotxdoc.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+)
New commits: commit 2281a4922f2209511f79b961ca2140c112bc41eb Author: Henry Castro <hcas...@collabora.com> Date: Tue Jun 9 23:19:40 2015 -0400 sw: tiled rendering, set minimal window size. Set minimal window size (1,1), so it can trigger LOK_CALLBACK_INVALIDATE_TILES Change-Id: If6ef9aeec94b396febd41375b3ce96b1aa1d6115 diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 5b73f62..e89ef6d 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3157,12 +3157,22 @@ 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; SwView* pView = pDocShell->GetView(); if (!pView) return; + pView->SetViewLayout(nColumns, bBookMode, true); // Tiled rendering defaults. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits