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/05/16 13:47:19 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge SVGUtilities.java
hillion 01/05/16 04:47:18
Modified: sources/org/apache/batik/bridge SVGUtilities.java
Log:
fixed a bug with userLanguage.
Revision Changes Path
1.13 +4 -4 xml-batik/sources/org/apache/batik/bridge/SVGUtilities.java
Index: SVGUtilities.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGUtilities.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- SVGUtilities.java 2001/04/18 13:51:01 1.12
+++ SVGUtilities.java 2001/05/16 11:47:15 1.13
@@ -51,7 +51,7 @@
*
* @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a>
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: SVGUtilities.java,v 1.12 2001/04/18 13:51:01 hillion Exp $
+ * @version $Id: SVGUtilities.java,v 1.13 2001/05/16 11:47:15 hillion Exp $
*/
public abstract class SVGUtilities implements SVGConstants, ErrorConstants {
@@ -197,9 +197,9 @@
StringTokenizer st = new StringTokenizer(userLanguages, ",");
while (st.hasMoreTokens()) {
String t = st.nextToken();
- if (s.startsWith(t)) {
- if (s.length() > t.length()) {
- return (s.charAt(t.length()) == '-') ? true : false;
+ if (t.startsWith(s)) {
+ if (t.length() > s.length()) {
+ return (t.charAt(s.length()) == '-') ? true : false;
}
return true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org