aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-05-26 15:32:33 +1000
committernyamatongwe <unknown>2012-05-26 15:32:33 +1000
commitdab7ac8e629b33210eeef32223097c109260160f (patch)
tree97373600ff489112a65755e359d7e56f3b929616
parent215215c5fc8f76e0857602b89a5ed1d7c41c080c (diff)
downloadscintilla-mirror-dab7ac8e629b33210eeef32223097c109260160f.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];
}