Bug #11945 fixed - When running simulation on large diagram, the grey filter 04/10804/2
Alexandre HERISSE [Wed, 13 Mar 2013 11:36:15 +0000 (12:36 +0100)]
did not apply to the entire diagram.

Change-Id: I91aacd90c2d4c65babbdb84f34c50c72c9dde009

scilab/CHANGES_5.4.X
scilab/modules/graph/src/java/org/scilab/modules/graph/ScilabComponent.java

index 0c371c5..b470833 100644 (file)
@@ -142,6 +142,9 @@ Xcos
 
 * Bug #11919 fixed - DLSS block with empty matrix as parameters made Scilab crash.
 
+* Bug #11945 fixed - When running simulation on large diagram, the grey filter
+                     did not apply to the entire diagram.
+
 * Bug #11963 fixed - input port in superblock was corrupted.
 
 * Bug #11988 fixed - Copying or dragging AFFICH_m block threw Java
index 9731e92..a05f01b 100644 (file)
@@ -205,9 +205,9 @@ public class ScilabComponent extends mxGraphComponent {
                     if (getGraph().isCellsLocked()) {
                         g.setColor(MASK_COLOR);
 
-                        Rectangle b = getBounds();
+                        Dimension b = getGraphControl().getSize();
 
-                        g.fillRect(b.x, b.y, b.width, b.height);
+                        g.fillRect(0, 0, b.width, b.height);
                     }
                 }
             });