From 02ff2b913f4c41629ce7d6a20f4ca7be5a46c752 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sat, 31 Oct 2015 23:08:52 +0000 Subject: [PATCH] #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 --- .../src/org/apache/poi/hslf/usermodel/HSLFTextRun.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a636d346c..e1f2ab24d 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) {