diff options
author | nyamatongwe <devnull@localhost> | 2002-09-04 11:09:12 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-09-04 11:09:12 +0000 |
commit | c757e22da0d5feef0cbc54840aff4268b791feae (patch) | |
tree | f01825efbff081dd84e82ba87432e7a36c27d78c | |
parent | db77b82cffd1529323a7dcb7cb4241a183451566 (diff) | |
download | scintilla-mirror-c757e22da0d5feef0cbc54840aff4268b791feae.tar.gz |
Measure all characters in Unicode mode.
-rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 70f0faa1b..8b7373cc5 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -558,7 +558,7 @@ void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, int *positi int ui=0; const unsigned char *us = reinterpret_cast<const unsigned char *>(s); int i=0; - while (i<fit) { + while (ui<fit) { unsigned char uch = us[i]; positions[i++] = poses[ui]; if (uch >= 0x80) { |