aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-05-26 15:32:33 +1000
committernyamatongwe <devnull@localhost>2012-05-26 15:32:33 +1000
commitd377d681327f2d8d799bfd0976bfe00cf588aea0 (patch)
treeb8b21ca1563f2dab129695f0808172c2819d83bc
parent3828986655c93d7f496ddce9567c53cab6cf57bb (diff)
downloadscintilla-mirror-d377d681327f2d8d799bfd0976bfe00cf588aea0.tar.gz
Fix for IME input sometimes causing horizontal jumps. Bug #3529728
-rw-r--r--win32/PlatWin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index ddc121abc..22ee361ba 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1012,6 +1012,8 @@ void SurfaceGDI::MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *
} else if (fit < lenBlock) {
// For some reason, such as an incomplete DBCS character
// Not all the positions are filled in so make them equal to end.
+ if (fit == 0)
+ poses.buffer[fit++] = 0;
for (int i = fit;i<lenBlock;i++)
poses.buffer[i] = poses.buffer[fit-1];
}