From: Sergey Vladimirov Date: Sat, 16 Jul 2011 16:33:13 +0000 (+0000) Subject: made getHighlightColor() public, so convertor don't need to clone CHP info X-Git-Tag: REL_3_8_BETA4~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3bc22e541cb515c2e30b3852eaafc6d700d69415;p=poi.git made getHighlightColor() public, so convertor don't need to clone CHP info git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147454 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoUtils.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoUtils.java index 65953708eb..66f8734e11 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoUtils.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoUtils.java @@ -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() ) {