Page 1 of 1

There seems to be a bug in StyleUtil.java

PostPosted: Fri Dec 28, 2012 1:17 pm
by hpeng
In StyleUtil.java

Code: Select all
public static boolean isEmpty(BooleanDefaultTrue booleanDefaultTrue) {
      return (booleanDefaultTrue == null) || booleanDefaultTrue.isVal();
   }


Should not it be:

Code: Select all
public static boolean isEmpty(BooleanDefaultTrue booleanDefaultTrue) {
      return (booleanDefaultTrue == null) || !booleanDefaultTrue.isVal();
   }


Thanks,

Hua.

Re: There seems to be a bug in StyleUtil.java

PostPosted: Fri Dec 28, 2012 5:32 pm
by jason
Thanks Hua for pointing that out. Fixed now in https://github.com/plutext/docx4j/commi ... 279b9d00c8

Re: There seems to be a bug in StyleUtil.java

PostPosted: Wed Jan 02, 2013 4:58 am
by hpeng
Thanks Jason and happy new year!