Export: avoid exception when export in landscape 29/14329/2
Calixte DENIZET [Thu, 3 Apr 2014 14:50:07 +0000 (16:50 +0200)]
Change-Id: Ic5f604bd0d928b8ee3645aaa852b1503e344d5b8

scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java

index 967d56e..a7c92ec 100644 (file)
@@ -1018,7 +1018,7 @@ public class Export {
                             }
                         } else if (s instanceof Path2D) {
                             StringBuilder buffer = new StringBuilder();
-                            double[] coords = new double[2];
+                            double[] coords = new double[6];
                             PathIterator it = ((Path2D) s).getPathIterator(new AffineTransform());
                             if (!it.isDone()) {
                                 int type = it.currentSegment(coords);