From 3bc22e541cb515c2e30b3852eaafc6d700d69415 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Sat, 16 Jul 2011 16:33:13 +0000 Subject: [PATCH] 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 --- .../src/org/apache/poi/hwpf/converter/WordToFoUtils.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() ) { -- 2.39.5