]> source.dussan.org Git - poi.git/commitdiff
#45124 - inserting text or images wipes out boldness and makes everything italic
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 31 Oct 2015 23:08:52 +0000 (23:08 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 31 Oct 2015 23:08:52 +0000 (23:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711705 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java

index a636d346c3d89a18f4b899414c98b6587e7da4e4..e1f2ab24d6d311c0e1b2776538d861e89552f5d2 100644 (file)
@@ -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) {