sc/source/ui/view/preview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 05409d2f950cb8c747afa621c0f43e3bafbc56b7 Author: Noel Power <noel.po...@novell.com> Date: Tue Jun 5 13:04:56 2012 +0100 fix incredible shrinking scrollbars when zooming in calc preview fdo#50722 Change-Id: If6fe9ccb1aa3320d96921f76a86def7d588f5f4e diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index bc2d355..da05322 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -705,7 +705,7 @@ void ScPreview::SetZoom(sal_uInt16 nNewZoom) SetMapMode( aMMMode ); bInSetZoom = true; // don't scroll during SetYOffset in UpdateScrollBars - if ( Window* pWin = pViewShell->GetWindow() ) + if ( Window* pWin = ( pViewShell->GetViewFrame() ? &pViewShell->GetViewFrame()->GetWindow() : NULL ) ) pViewShell->AdjustPosSizePixel( pWin->GetPosPixel(), pWin->GetSizePixel() ); else pViewShell->UpdateScrollBars(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits