diff data/model/PowerOfTwoZoomConstraint.cpp @ 1429:48e9f538e6e9

Untabify
author Chris Cannam
date Thu, 01 Mar 2018 18:02:22 +0000
parents 59e7fe1b1003
children 710e6250a401 a7485c1bdba5
line wrap: on
line diff
--- a/data/model/PowerOfTwoZoomConstraint.cpp	Thu Mar 01 14:43:40 2018 +0000
+++ b/data/model/PowerOfTwoZoomConstraint.cpp	Thu Mar 01 18:02:22 2018 +0000
@@ -17,28 +17,28 @@
 
 int
 PowerOfTwoZoomConstraint::getNearestBlockSize(int req,
-					      RoundingDirection dir) const
+                                              RoundingDirection dir) const
 {
     int result = 0;
 
     for (int bs = 1; ; bs *= 2) {
-	if (bs >= req) {
-	    if (dir == RoundNearest) {
-		if (bs - req < req - bs/2) {
-		    result = bs;
-		    break;
-		} else {
-		    result = bs/2;
-		    break;
-		}
-	    } else if (dir == RoundDown) {
-		result = bs/2;
-		break;
-	    } else {
-		result = bs;
-		break;
-	    }
-	}
+        if (bs >= req) {
+            if (dir == RoundNearest) {
+                if (bs - req < req - bs/2) {
+                    result = bs;
+                    break;
+                } else {
+                    result = bs/2;
+                    break;
+                }
+            } else if (dir == RoundDown) {
+                result = bs/2;
+                break;
+            } else {
+                result = bs;
+                break;
+            }
+        }
     }
 
     if (result > getMaxZoomLevel()) result = getMaxZoomLevel();