]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Eliminate array looping if text-transform is NONE for a probable performance benefit.
authorWilliam Victor Mote <vmote@apache.org>
Wed, 26 Mar 2003 00:00:16 +0000 (00:00 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Wed, 26 Mar 2003 00:00:16 +0000 (00:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196142 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOText.java

index f10ef84b36bb21df01d7156fcbdc00bc7fa70510..68993a0d61570b8246b1d7d66a0f6fe20a97319b 100644 (file)
@@ -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);
         }