Ugh, that's what I get for copying someone else's code without fully reviewing it. Return the boolean property, don't wrap it in an extra if().

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782989 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Greg Woolsey 2017-02-14 16:49:24 +00:00
parent 05125678ab
commit c88649ccd2

View File

@ -79,7 +79,7 @@ public class XSSFFontFormatting implements FontFormatting {
*/
@Override
public boolean isStruckout() {
for (CTBooleanProperty bProp : _font.getStrikeArray()) if (bProp.getVal()) return true;
for (CTBooleanProperty bProp : _font.getStrikeArray()) return bProp.getVal();
return false;
}