From 62afcdff49ff9d7e0ef796f85257b3100a6f8ccb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 20 Feb 2002 01:46:06 +0000 Subject: Fixed bug where extra position element was written when measuring text in Unicode mode. --- win32/PlatWin.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'win32') 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. -- cgit v1.2.3