Use LinkedList instead of Array to avoid Unsupported operation on remove 38/10238/2
Bruno JOFRET [Thu, 17 Jan 2013 11:26:34 +0000 (12:26 +0100)]
Change-Id: Iabe531dd1a24c5d697777becc2e4af79694111eb

scilab/modules/renderer/src/java/org/scilab/modules/renderer/JoGLView/axes/ruler/UserDefineGraduation.java

index 3568e42..a24501a 100644 (file)
@@ -16,6 +16,7 @@ import org.scilab.modules.graphic_objects.axes.AxisProperty;
 
 import java.text.DecimalFormat;
 import java.util.Arrays;
+import java.util.LinkedList;
 import java.util.List;
 
 /**
@@ -70,7 +71,7 @@ class UserDefineGraduation implements Graduations {
     @Override
     public List<Double> getAllValues() {
         if (allValues == null) {
-            allValues = Arrays.asList(axisProperty.getTicksLocations());
+            allValues = new LinkedList<Double>(Arrays.asList(axisProperty.getTicksLocations()));
         }
         return allValues;
     }