UIHelper: fix for nikiroo-utils update
authorNiki Roo <niki@nikiroo.be>
Thu, 7 May 2020 17:31:10 +0000 (19:31 +0200)
committerNiki Roo <niki@nikiroo.be>
Thu, 7 May 2020 17:31:10 +0000 (19:31 +0200)
src/be/nikiroo/fanfix_swing/gui/utils/UiHelper.java

index 2da67e2f856b8d3e7a5b5f54a523aa1cea7bc9cc..6a296d808c862657edba431943f9350cbc494b3f 100644 (file)
@@ -173,9 +173,8 @@ public class UiHelper {
 
                                List<java.awt.Image> resizedImages = new ArrayList<java.awt.Image>();
                                for (int size : new Integer[] { 16, 20, 64, 400 }) {
-                                       resizedImages.add(
-                                                       ImageUtilsAwt.scaleImage(new Dimension(size, size),
-                                                                       image, -1, zoomSnapWidth));
+                                       resizedImages.add(ImageUtilsAwt.scaleImage(image,
+                                                       new Dimension(size, size), -1, zoomSnapWidth));
                                }
 
                                return resizedImages;