You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by hi...@apache.org on 2001/04/13 15:46:54 UTC
cvs commit: xml-batik/sources/org/apache/batik/parser PathParser.java
hillion 01/04/13 06:46:54
Modified: sources/org/apache/batik/apps/svgbrowser
JSVGViewerFrame.java
sources/org/apache/batik/parser PathParser.java
Log:
Fixed the path parser.
Revision Changes Path
1.19 +4 -2 xml-batik/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
Index: JSVGViewerFrame.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- JSVGViewerFrame.java 2001/04/12 13:06:16 1.18
+++ JSVGViewerFrame.java 2001/04/13 13:46:52 1.19
@@ -128,7 +128,7 @@
* This class represents a SVG viewer swing frame.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: JSVGViewerFrame.java,v 1.18 2001/04/12 13:06:16 hillion Exp $
+ * @version $Id: JSVGViewerFrame.java,v 1.19 2001/04/13 13:46:52 hillion Exp $
*/
public class JSVGViewerFrame
extends JFrame
@@ -1511,8 +1511,10 @@
* Displays an error resulting from the specified Exception.
*/
public void displayError(Exception ex) {
+ if (debug) {
+ ex.printStackTrace();
+ }
displayError(ex.getMessage());
- ex.printStackTrace();
}
/**
1.4 +3 -1 xml-batik/sources/org/apache/batik/parser/PathParser.java
Index: PathParser.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/parser/PathParser.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PathParser.java 2001/02/05 18:15:56 1.3
+++ PathParser.java 2001/04/13 13:46:53 1.4
@@ -15,7 +15,7 @@
* attribute values.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: PathParser.java,v 1.3 2001/02/05 18:15:56 hillion Exp $
+ * @version $Id: PathParser.java,v 1.4 2001/04/13 13:46:53 hillion Exp $
*/
public class PathParser extends NumberParser {
@@ -168,6 +168,7 @@
reportError("float.format", new Object[] { getBufferContent() });
skipSubPath();
}
+ skipCommaSpaces();
}
/**
@@ -220,6 +221,7 @@
reportError("float.format", new Object[] { getBufferContent() });
skipSubPath();
}
+ skipCommaSpaces();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org