vmote 2003/03/25 16:00:17
Modified: src/java/org/apache/fop/fo FOText.java
Log:
Eliminate array looping if text-transform is NONE for a probable performance benefit.
Revision Changes Path
1.3 +3 -0 xml-fop/src/java/org/apache/fop/fo/FOText.java
Index: FOText.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FOText.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FOText.java 25 Mar 2003 23:34:11 -0000 1.2
+++ FOText.java 26 Mar 2003 00:00:16 -0000 1.3
@@ -252,6 +252,9 @@
* text-transform property.
*/
private void textTransform() {
+ if (textInfo.textTransform == TextTransform.NONE) {
+ return;
+ }
for (int i = 0; i < ca.length; i++) {
ca[i] = charTransform(i);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]