From 4d6d8159084797801c6430bb36c700a6bce37182 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Tue, 20 Sep 2011 09:19:09 +0000 Subject: [PATCH] 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 --- .../src/org/apache/poi/hwpf/converter/WordToFoUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ) -- 2.39.5