From 46ba1bb26d5ec6561920283c13487b137ef56577 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 16 Mar 2007 15:13:22 +0000 Subject: [PATCH] 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 --- src/msw/graphics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index dbed8ff5c2..cd9dd2a3bb 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -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(); -- 2.45.2