From 4c485740b008dc7fac1fdf919fa2f515452bbb71 Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Tue, 9 Sep 2014 13:24:39 +0000
Subject: [PATCH] SSDM-782: Tiny bug fixed: Mixed images where shifted by one
 pixel to the right.

SVN: 32426
---
 .../source/java/ch/systemsx/cisd/common/image/MixColors.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/common/source/java/ch/systemsx/cisd/common/image/MixColors.java b/common/source/java/ch/systemsx/cisd/common/image/MixColors.java
index 64bda1eadd5..f980fca442b 100644
--- a/common/source/java/ch/systemsx/cisd/common/image/MixColors.java
+++ b/common/source/java/ch/systemsx/cisd/common/image/MixColors.java
@@ -319,9 +319,9 @@ public class MixColors
             for (int x = 0; x < width; ++x)
             {
                 Color mixColor = mergeColorsAlgorithm.merge(colors, x, y, images);
+                mixColor.getRGBColorComponents(mixedComponents);
                 mixed.setRGB(x, y, new Color(mixedComponents[0], mixedComponents[1], mixedComponents[2], 1).getRGB());
 
-                mixColor.getRGBColorComponents(mixedComponents);
                 float sumIntencity = 0f;
                 for (int i = 0; i < mixedComponents.length; i++)
                 {
@@ -335,7 +335,6 @@ public class MixColors
                 }
             }
         }
-
         return new MixedImageWithWhitePoint(mixed, whitePointColor);
     }
 
-- 
GitLab