The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings Complex Surface Machining Optimization
Summary Activity SCM

SCM Repository

authorJean-Max Redonnet <jean-max.redonnet@unniv-tlse3.fr>
Fri, 15 May 2020 15:49:01 +0000 (17:49 +0200)
committerJean-Max Redonnet <jean-max.redonnet@unniv-tlse3.fr>
Fri, 15 May 2020 15:49:01 +0000 (17:49 +0200)
src/org/ica/cosmo/zoning/Zone.java

index 4814e61..51e65cc 100644 (file)
@@ -141,7 +141,7 @@ public class Zone implements PropertyChangeListener {
                        j = (int) Math.floor(v / map.getSurface().getVmax() * map.tessV);
                boolean result = false;
                if (i >= 0 && i < map.tessU && j >= 0 && j < map.tessV)
-                       if (map.zMapIDs[i][j] == this.id)
+                       if (map.zMapIDs[i][j].equals(this.id))
                                result = true;
                return result;
        }