[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sc/source

Noel Power noelp at kemper.freedesktop.org
Tue Jun 5 05:23:07 PDT 2012


 sc/source/ui/view/preview.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit daf35c9aa78aad9638e49d81af020677273250d4
Author: Noel Power <noel.power at 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();


More information about the Libreoffice-commits mailing list