Fix wrong dimensions calculated due to last minute variable name change
This commit is contained in:
parent
b5e66e35bf
commit
d6e927a8be
@ -59,7 +59,7 @@ public final class NumberUtils {
|
|||||||
public static Pair<Integer, Integer> calculateWidthHeight(final int height, final int width, final int maxHeight, final int maxWidth) {
|
public static Pair<Integer, Integer> calculateWidthHeight(final int height, final int width, final int maxHeight, final int maxWidth) {
|
||||||
int tempWidth = NumberUtils.getResultingWidth(maxHeight, height, width);
|
int tempWidth = NumberUtils.getResultingWidth(maxHeight, height, width);
|
||||||
int tempHeight = maxHeight;
|
int tempHeight = maxHeight;
|
||||||
if (width > maxWidth) {
|
if (tempWidth > maxWidth) {
|
||||||
tempHeight = NumberUtils.getResultingHeight(maxWidth, height, width);
|
tempHeight = NumberUtils.getResultingHeight(maxWidth, height, width);
|
||||||
tempWidth = maxWidth;
|
tempWidth = maxWidth;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user