aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-02-20 01:46:06 +0000
committernyamatongwe <devnull@localhost>2002-02-20 01:46:06 +0000
commit92f21a3cf29fc84cc3420d8341873920c7324999 (patch)
treead7fbd0ffb63b6da155b19a405c87ab3546e326c
parentd9bd39f0601f016dc842447d5bc3cf5d35eb3d70 (diff)
downloadscintilla-mirror-92f21a3cf29fc84cc3420d8341873920c7324999.tar.gz
Fixed bug where extra position element was written when measuring text in
Unicode mode.
-rw-r--r--win32/PlatWin.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 8cca64deb..709e6e480 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -570,7 +570,6 @@ void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, int *positi
}
ui++;
}
- positions[i] = sz.cx;
} else {
if (!::GetTextExtentExPoint(hdc, s, len, 30000, &fit, positions, &sz)) {
// Eeek - a NULL DC or other foolishness could cause this.