From: Tim Allison Date: Fri, 3 Feb 2017 20:19:33 +0000 (+0000) Subject: Bug 60677 -- handle multibyte encodings correctly in HwmfGraphics' drawString. Thank... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be805a6e66432e4bd8342f6797c98b79f9cd8acb;p=poi.git Bug 60677 -- handle multibyte encodings correctly in HwmfGraphics' drawString. Thanks to Dominik Stadler for finding this bug and a triggering doc via large scale regression testing. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1781593 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java b/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java index f292313185..ef5af49e40 100644 --- a/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java +++ b/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java @@ -338,13 +338,44 @@ public class HwmfGraphics { if (dx == null || dx.length == 0) { addAttributes(as, font); } else { - for (int i=0; i