From: Andreas Beeker Date: Sat, 31 Oct 2015 23:08:52 +0000 (+0000) Subject: #45124 - inserting text or images wipes out boldness and makes everything italic X-Git-Tag: REL_3_14_BETA1~195 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f42904f162d0bc570c7632109946bfae9706c3da;p=poi.git #45124 - inserting text or images wipes out boldness and makes everything italic git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711705 13f79535-47bb-0310-9956-ffa450edef68 --- 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) {