Bug 13742 fixed: Figure was not well printed when there is a xstring with latex 31/15931/1
Calixte DENIZET [Tue, 10 Feb 2015 14:18:58 +0000 (15:18 +0100)]
Change-Id: Ibbb90a308e32a84d17500efda3c1aa04149cb9d3

scilab/CHANGES_5.5.X
scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java

index 0df9be2..9ee1690 100644 (file)
@@ -49,6 +49,8 @@ Scilab Bug Fixes
 
 * Bug #13741 fixed - Impossible to print an invisible figure under Windows.
 
+* Bug #13742 fixed - Figure was not well printed when there is a xstring with latex.
+
 
                      Changes between version 5.5.0 and 5.5.1
                      =======================================
index 95873ec..bf38ca1 100644 (file)
@@ -858,7 +858,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);