diff options
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/view.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 9bf6a3080399..abd832340d99 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -575,7 +575,7 @@ void SmGraphicWindow::Command(const CommandEvent& rCEvt) void SmGraphicWindow::SetZoom(sal_uInt16 Factor) { - nZoom = std::min(std::max(Factor, MINZOOM), MAXZOOM); + nZoom = std::clamp(Factor, MINZOOM, MAXZOOM); Fraction aFraction (nZoom, 100); SetMapMode( MapMode(MapUnit::Map100thMM, Point(), aFraction, aFraction) ); SetTotalSize(); |