[bug-62038] handle null font size in XSLFTextRun copy

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1822253 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2018-01-26 07:51:57 +00:00
parent a5d2574538
commit 7e434aa155

View File

@ -226,7 +226,6 @@ public class XSLFTextRun implements TextRun {
} }
/** /**
*
* @return the spacing between characters within a text run, * @return the spacing between characters within a text run,
* If this attribute is omitted than a value of 0 or no adjustment is assumed. * If this attribute is omitted than a value of 0 or no adjustment is assumed.
*/ */
@ -589,7 +588,7 @@ public class XSLFTextRun implements TextRun {
setFontColor(srcFontColor); setFontColor(srcFontColor);
} }
double srcFontSize = r.getFontSize(); Double srcFontSize = r.getFontSize();
if (srcFontSize != getFontSize()) { if (srcFontSize != getFontSize()) {
setFontSize(srcFontSize); setFontSize(srcFontSize);
} }