poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1859101 - /poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java
Date Fri, 10 May 2019 20:54:57 GMT
Author: kiwiwings
Date: Fri May 10 20:54:57 2019
New Revision: 1859101

URL: http://svn.apache.org/viewvc?rev=1859101&view=rev
Log:
Don't fallback to master shape properties, if master shape is not assigned

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java?rev=1859101&r1=1859100&r2=1859101&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java Fri May
10 20:54:57 2019
@@ -347,7 +347,7 @@ implements TextShape<HSLFShape,HSLFTextP
             return -1;
         }
         List<HSLFTextParagraph> paras = HSLFTextParagraph.findTextParagraphs(_txtbox,
getSheet());
-        return (paras.isEmpty()) ? -1 : paras.get(0).getRunType();
+        return (paras.isEmpty() || paras.get(0).getIndex() == -1) ? -1 : paras.get(0).getRunType();
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message