File scilab-build-with-xmlgraphics-commons-2_0.patch of Package scilab
http://bugzilla.scilab.org/show_bug.cgi?id=13724
Index: scilab-5.5.1/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java
===================================================================
--- scilab-5.5.1.orig/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java
+++ scilab-5.5.1/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java
@@ -832,7 +832,7 @@ public class Export {
}
@Override
- public int processShape(Shape s) throws IOException {
+ public int processShape(Shape s, boolean b) throws IOException {
if (s instanceof Ellipse2D.Double) {
Ellipse2D.Double ell = (Ellipse2D.Double) s;
if (ell.height == ell.width) {
@@ -855,10 +855,10 @@ public class Export {
buffer.append("[").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
it.next();
} else {
- return super.processShape(s);
+ return super.processShape(s,true);
}
} else {
- return super.processShape(s);
+ return super.processShape(s,true);
}
for (; !it.isDone(); it.next()) {
@@ -866,7 +866,7 @@ public class Export {
if (type == PathIterator.SEG_LINETO) {
buffer.append(" ").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
} else {
- return super.processShape(s);
+ return super.processShape(s,true);
}
}
buffer.append("] DP");
@@ -874,7 +874,7 @@ public class Export {
return PathIterator.WIND_NON_ZERO;
}
- return super.processShape(s);
+ return super.processShape(s,true);
}
};
g2d.setGraphicContext(new GraphicContext());
@@ -1003,7 +1003,7 @@ public class Export {
}
@Override
- public int processShape(Shape s) throws IOException {
+ public int processShape(Shape s, boolean b) throws IOException {
if (s instanceof Ellipse2D.Double) {
Ellipse2D.Double ell = (Ellipse2D.Double) s;
if (ell.height == ell.width) {
@@ -1026,10 +1026,10 @@ public class Export {
buffer.append("[").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
it.next();
} else {
- return super.processShape(s);
+ return super.processShape(s,true);
}
} else {
- return super.processShape(s);
+ return super.processShape(s,true);
}
for (; !it.isDone(); it.next()) {
@@ -1037,7 +1037,7 @@ public class Export {
if (type == PathIterator.SEG_LINETO) {
buffer.append(" ").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
} else {
- return super.processShape(s);
+ return super.processShape(s,true);
}
}
buffer.append("] DP");
@@ -1045,7 +1045,7 @@ public class Export {
return PathIterator.WIND_NON_ZERO;
}
- return super.processShape(s);
+ return super.processShape(s,true);
}
};