From d377d681327f2d8d799bfd0976bfe00cf588aea0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 May 2012 15:32:33 +1000 Subject: Fix for IME input sometimes causing horizontal jumps. Bug #3529728 --- win32/PlatWin.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'win32') 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