CoverityFix-CID:1360825 Result is not floating-point 61/20261/2
Nimish Kapoor [Thu, 12 Jul 2018 17:00:59 +0000 (22:00 +0530)]
Change-Id: I694ea74b27eebb43955d4afe2d948e6d8c5ac396

scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/tranformations/TransformationManagerImpl.java

index 86a206a..aaaa6da 100644 (file)
@@ -116,8 +116,8 @@ public class TransformationManagerImpl implements TransformationManager {
 
     @Override
     public Transformation getInverseWindowTransformation() {
-        double w = canvas.getWidth() / 2;
-        double h = canvas.getHeight() / 2;
+        double w = (double)canvas.getWidth() / 2;
+        double h = (double)canvas.getHeight() / 2;
         try {
             return TransformationFactory.getAffineTransformation(
                        new Vector3d(w, h, 1),