From: Sergey Vladimirov Date: Tue, 20 Sep 2011 09:19:09 +0000 (+0000) Subject: do not output empty borders (esp. with incorrect "-1" values of widths) X-Git-Tag: REL_3_8_BETA5~154 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d6d8159084797801c6430bb36c700a6bce37182;p=poi.git do not output empty borders (esp. with incorrect "-1" values of widths) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173045 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 c79a3d611d..da2a881a1c 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoUtils.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToFoUtils.java @@ -44,7 +44,7 @@ public class WordToFoUtils extends AbstractWordUtils if ( element == null ) throw new IllegalArgumentException( "element is null" ); - if ( borderCode == null || borderCode.getBorderType() == 0 ) + if ( borderCode == null || borderCode.isEmpty() ) return; if ( isEmpty( where ) )