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
This commit is contained in:
Sergey Vladimirov 2011-09-20 09:19:09 +00:00
parent 0aa1773a25
commit 4d8970baca

View 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 ) )