diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java index a636d346c3..e1f2ab24d6 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java @@ -116,7 +116,7 @@ public final class HSLFTextRun implements TextRun { BitMaskTextProp prop = (BitMaskTextProp)characterStyle.findByName(CharFlagsTextProp.NAME); - if (prop == null){ + if (prop == null || !prop.getSubPropMatches()[index]) { int txtype = parentParagraph.getRunType(); HSLFSheet sheet = parentParagraph.getSheet(); if (sheet != null) {