summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-01 11:47:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-01 13:18:43 +0100
commit854dc05d285d4bd5c91bada839f282d1d03dbb52 (patch)
treeee55744b5306a3df3242cf5c71fc457e3ac1633a
parent9808486a89c6368f836579f8d8c0dda63fd0063c (diff)
One more "Don't add snap point < MINZOOM"
...similar to a89f535d85bb7d32ccb5196813ba6233f45c0c83 "Don't add snap point < MINZOOM", this time triggered during CppunitTest_smoketest Change-Id: Ibee45c7b1ac9b29c7c4757bbdafd909076bcb058 Reviewed-on: https://gerrit.libreoffice.org/67243 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sw/source/uibase/uiview/view2.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index 63cd87a68867..11ba7904f18d 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -1458,7 +1458,10 @@ void SwView::StateStatusLine(SfxItemSet &rSet)
nTmpWidth += aPageSize.Width() + pVOpt->GetGapBetweenPages();
nFac = aWindowSize.Width() * 100 / nTmpWidth;
nFac = std::min( nFac, nVisPercent );
- aZoomSliderItem.AddSnappingPoint( nFac );
+ if (nFac >= MINZOOM)
+ {
+ aZoomSliderItem.AddSnappingPoint( nFac );
+ }
}
}