Mercurial > hg > svcore
diff base/ZoomConstraint.h @ 1429:48e9f538e6e9
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 12f3b48668d4 |
children | 710e6250a401 a7485c1bdba5 |
line wrap: on
line diff
--- a/base/ZoomConstraint.h Thu Mar 01 14:43:40 2018 +0000 +++ b/base/ZoomConstraint.h Thu Mar 01 18:02:22 2018 +0000 @@ -33,9 +33,9 @@ virtual ~ZoomConstraint() { } enum RoundingDirection { - RoundDown, - RoundUp, - RoundNearest + RoundDown, + RoundUp, + RoundNearest }; /** @@ -49,11 +49,11 @@ * depending on the rounding direction supplied. */ virtual int getNearestBlockSize(int requestedBlockSize, - RoundingDirection = RoundNearest) - const + RoundingDirection = RoundNearest) + const { - if (requestedBlockSize > getMaxZoomLevel()) return getMaxZoomLevel(); - else return requestedBlockSize; + if (requestedBlockSize > getMaxZoomLevel()) return getMaxZoomLevel(); + else return requestedBlockSize; } /**