You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ac...@apache.org on 2008/11/25 21:10:26 UTC
svn commit: r720586 - in /xmlgraphics/commons/trunk:
src/java/org/apache/xmlgraphics/ps/PSDictionary.java status.xml
Author: acumiskey
Date: Tue Nov 25 12:10:26 2008
New Revision: 720586
URL: http://svn.apache.org/viewvc?rev=720586&view=rev
Log:
Added the ability to assign a string value for a key in a postscript dictionary. Many thanks to Jiri Kunhart for providing the fix.
Modified:
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSDictionary.java
xmlgraphics/commons/trunk/status.xml
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSDictionary.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSDictionary.java?rev=720586&r1=720585&r2=720586&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSDictionary.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSDictionary.java Tue Nov 25 12:10:26 2008
@@ -58,7 +58,8 @@
private static final String[][] BRACES = {
{"<<", ">>"},
{"[", "]"},
- {"{", "}"}
+ {"{", "}"},
+ {"(", ")"}
};
private static final int OPENING = 0;
@@ -66,6 +67,7 @@
private static final int DICTIONARY = 0;
private static final int ARRAY = 1;
private static final int PROCEDURE = 2;
+ private static final int STRING = 3;
/**
* Returns a Token containing the start, end index and value of the next token
@@ -210,7 +212,7 @@
}
valueToken.value = str.substring(valueToken.startIndex, valueToken.endIndex);
}
- if (braces == null || braces == BRACES[PROCEDURE]) {
+ if (braces == null || braces == BRACES[PROCEDURE] || braces == BRACES[STRING]) {
obj = valueToken.value;
} else if (BRACES[ARRAY] == braces) {
List objList = new java.util.ArrayList();
Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?rev=720586&r1=720585&r2=720586&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Tue Nov 25 12:10:26 2008
@@ -40,6 +40,9 @@
</contexts>
<changes>
<release version="Trunk" date="n/a">
+ <action context="Code" dev="AC" type="fix" fixes-bug="46292" due-to="Jiri Kunhart">
+ Added the ability to assign a string value for a key in a postscript dictionary.
+ </action>
<action context="Code" dev="JM" type="fix" fixes-bug="45789">
Made loading images via Image I/O more robust: A PNG with a zero resolution
should fall back to the default resolution.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org