]> source.dussan.org Git - poi.git/commitdiff
do not output empty borders (esp. with incorrect "-1" values of widths)
authorSergey Vladimirov <sergey@apache.org>
Tue, 20 Sep 2011 09:19:09 +0000 (09:19 +0000)
committerSergey Vladimirov <sergey@apache.org>
Tue, 20 Sep 2011 09:19:09 +0000 (09:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173045 13f79535-47bb-0310-9956-ffa450edef68

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

index c79a3d611dab564ef0b6ff6625e33fc418062efd..da2a881a1ccb2320d15cd776be827f2478f8382d 100644 (file)
@@ -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 ) )