Coverity Fixes : CID #1350353 72/19172/5
Siddhartha Gairola [Sat, 11 Mar 2017 18:12:32 +0000 (23:12 +0530)]
Change-Id: I3cb074c2539d5f6f6f1b85ef34e3bb3b9bba7aca

scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/lighting/ColorTriplet.java

index 51e53e1..0f815ac 100644 (file)
@@ -104,7 +104,7 @@ public class ColorTriplet {
             return UpdateStatus.Fail;
         }
 
-        if (specular[0] != color[0] || specular[1] != specular[1] || specular[2] != color[2]) {
+        if (specular[0] != color[0] || specular[1] != color[1] || specular[2] != color[2]) {
             specular[0] = color[0];
             specular[1] = color[1];
             specular[2] = color[2];