summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 01:50:13 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 01:50:13 +0200
commit793f1e70ce4c364b366d2e8065ea7fb2815bbf40 (patch)
treec01d40e954c4811d4fddd7230e13adace2547b28
parent555a8955c71f28f93b032e8dd2c627ab3e794b02 (diff)
set the zoom only once, prevents infinite loop, fdo#51040
Change-Id: I9d6e077e489e513cc8eb482b22e77c7bc1adffe4
-rw-r--r--sc/source/ui/view/prevwsh.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index 77f633ddfc91..4bf563122e85 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();
}