[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Feb 1 12:19:09 UTC 2019


 sw/source/uibase/uiview/view2.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 854dc05d285d4bd5c91bada839f282d1d03dbb52
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Feb 1 11:47:20 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Feb 1 13:18:43 2019 +0100

    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 at redhat.com>

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 );
+                            }
                         }
                     }
 


More information about the Libreoffice-commits mailing list