Kaydet (Commit) 854dc05d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

One more "Don't add snap point < MINZOOM"

...similar to a89f535d "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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 9808486a
......@@ -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 );
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment