VC6 compilation fix (don't reuse the same variable in 2 for loops)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-03-16 15:13:22 +00:00
parent 609da8bbad
commit 46ba1bb26d

View File

@ -1169,7 +1169,8 @@ void wxGDIPlusContext::GetPartialTextExtents(const wxString& text, wxArrayDouble
CharacterRange* ranges = new CharacterRange[len] ;
Region* regions = new Region[len];
for( size_t i = 0 ; i < len ; ++i)
size_t i;
for( i = 0 ; i < len ; ++i)
{
ranges[i].First = i ;
ranges[i].Length = 1 ;
@ -1178,7 +1179,7 @@ void wxGDIPlusContext::GetPartialTextExtents(const wxString& text, wxArrayDouble
m_context->MeasureCharacterRanges(ws, -1 , f,layoutRect, &strFormat,1,regions) ;
RectF bbox ;
for ( size_t i = 0 ; i < len ; ++i)
for ( i = 0 ; i < len ; ++i)
{
regions[i].GetBounds(&bbox,m_context);
widths[i] = bbox.GetRight()-bbox.GetLeft();