diff options
author | William Victor Mote <vmote@apache.org> | 2003-03-26 00:00:16 +0000 |
---|---|---|
committer | William Victor Mote <vmote@apache.org> | 2003-03-26 00:00:16 +0000 |
commit | d86dcc86b7248fa40c77996a5674f82995229b49 (patch) | |
tree | 2368ed42e834c7dd841450f3041b586696cd6dfb /src/java/org/apache/fop/fo/FOText.java | |
parent | 1450b3da910352ff50ab103168b49a394263bfdd (diff) | |
download | xmlgraphics-fop-d86dcc86b7248fa40c77996a5674f82995229b49.tar.gz xmlgraphics-fop-d86dcc86b7248fa40c77996a5674f82995229b49.zip |
Eliminate array looping if text-transform is NONE for a probable performance benefit.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/FOText.java')
-rw-r--r-- | src/java/org/apache/fop/fo/FOText.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/FOText.java b/src/java/org/apache/fop/fo/FOText.java index f10ef84b3..68993a0d6 100644 --- a/src/java/org/apache/fop/fo/FOText.java +++ b/src/java/org/apache/fop/fo/FOText.java @@ -252,6 +252,9 @@ public class FOText extends FObj { * text-transform property. */ private void textTransform() { + if (textInfo.textTransform == TextTransform.NONE) { + return; + } for (int i = 0; i < ca.length; i++) { ca[i] = charTransform(i); } |