]> source.dussan.org Git - poi.git/commitdiff
made getHighlightColor() public, so convertor don't need to clone CHP info
authorSergey Vladimirov <sergey@apache.org>
Sat, 16 Jul 2011 16:33:13 +0000 (16:33 +0000)
committerSergey Vladimirov <sergey@apache.org>
Sat, 16 Jul 2011 16:33:13 +0000 (16:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147454 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoUtils.java

index 65953708ebc02ad9e6ffd004c9a75a5b9b2bcdb4..66f8734e11199a89ff7ea65260c4a10eeadffed3 100644 (file)
@@ -17,7 +17,6 @@
 package org.apache.poi.hwpf.converter;
 
 import org.apache.poi.hwpf.usermodel.BorderCode;
-import org.apache.poi.hwpf.usermodel.CharacterProperties;
 import org.apache.poi.hwpf.usermodel.CharacterRun;
 import org.apache.poi.hwpf.usermodel.Paragraph;
 import org.apache.poi.hwpf.usermodel.Picture;
@@ -62,11 +61,9 @@ public class WordToFoUtils extends AbstractWordUtils
     public static void setCharactersProperties(
             final CharacterRun characterRun, final Element inline )
     {
-        final CharacterProperties clonedProperties = characterRun
-                .cloneProperties();
         StringBuilder textDecorations = new StringBuilder();
 
-        setBorder( inline, clonedProperties.getBrc(), EMPTY );
+        setBorder( inline, characterRun.getBorder(), EMPTY );
 
         if ( characterRun.isCapitalized() )
         {
@@ -75,7 +72,7 @@ public class WordToFoUtils extends AbstractWordUtils
         if ( characterRun.isHighlighted() )
         {
             inline.setAttribute( "background-color",
-                    getColor( clonedProperties.getIcoHighlight() ) );
+                    getColor( characterRun.getHighlightedColor() ) );
         }
         if ( characterRun.isStrikeThrough() )
         {