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

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Sun Jun 24 17:03:56 PDT 2012


 sc/source/ui/view/prevwsh.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit a266f82d2199974dee0429ddc263d2ca2cecea1c
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Jun 25 01:50:13 2012 +0200

    set the zoom only once, prevents infinite loop, fdo#51040
    
    Change-Id: I9d6e077e489e513cc8eb482b22e77c7bc1adffe4

diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index a69cb79..c4816bb 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -359,10 +359,6 @@ void ScPreviewShell::UpdateNeededScrollBars()
     pCorner->SetPosSizePixel( Point( aPos.X() + aNewSize.Width(), aPos.Y() + aNewSize.Height() ),
                               Size( nBarW, nBarH ) );
 
-    if ( SVX_ZOOM_WHOLEPAGE == eZoom )
-        pPreview->SetZoom( pPreview->GetOptimalZoom( sal_False ) );
-    else if ( SVX_ZOOM_PAGEWIDTH == eZoom )
-        pPreview->SetZoom( pPreview->GetOptimalZoom( sal_True ) );
     UpdateScrollBars();
 }
 


More information about the Libreoffice-commits mailing list