ImageUtils: fix scale process
[fanfix.git] / ImageUtils.java
index c0e123280cd5aa846bd57e08324a81df253c9de4..2b8ff8fa9ec722056904d310343761f979285924 100644 (file)
@@ -65,7 +65,7 @@ public abstract class ImageUtils {
                int width;
                int height;
                if (zoom > 0) {
-                       width = (int) Math.round(imageHeight * zoom);
+                       width = (int) Math.round(imageWidth * zoom);
                        height = (int) Math.round(imageHeight * zoom);
                } else {
                        if (zoomSnapWidth) {