[Libreoffice-commits] .: sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Sun Jun 24 16:53:14 PDT 2012
sc/source/ui/view/prevwsh.cxx | 4 ----
1 file changed, 4 deletions(-)
New commits:
commit 793f1e70ce4c364b366d2e8065ea7fb2815bbf40
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 77f633d..4bf5631 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -354,10 +354,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