diff options
author | PJ Fanning <fanningpj@apache.org> | 2018-01-31 05:52:46 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2018-01-31 05:52:46 +0000 |
commit | 0cd2fdc86ad515e41bf8012bd7252d8e9805ebb1 (patch) | |
tree | 54b072599955aa6a973047d6072e606e8ccd625e /src/java/org | |
parent | 15e1aa8b8b34afdfb883ff8ee4b4e327851b2843 (diff) | |
download | poi-0cd2fdc86ad515e41bf8012bd7252d8e9805ebb1.tar.gz poi-0cd2fdc86ad515e41bf8012bd7252d8e9805ebb1.zip |
fix findbug issues introduced recently
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1822758 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/poi/sl/draw/DrawTextParagraph.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java b/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java index c0c7eb21fd..78979c97b4 100644 --- a/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java +++ b/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java @@ -383,11 +383,11 @@ public class DrawTextParagraph implements Drawable { String getRenderableText(TextRun tr) { String txt = tr.getRawText(); - txt.replace("\t", tab2space(tr)).replace("\u000b", "\n"); + txt = txt.replace("\t", tab2space(tr)).replace("\u000b", "\n"); switch (tr.getTextCap()) { - case ALL: txt.toUpperCase(LocaleUtil.getUserLocale()); break; - case SMALL: txt.toLowerCase(LocaleUtil.getUserLocale()); break; + case ALL: txt = txt.toUpperCase(LocaleUtil.getUserLocale()); break; + case SMALL: txt = txt.toLowerCase(LocaleUtil.getUserLocale()); break; case NONE: break; } |