X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c315587c21ed44e54fbb3c1b36f0f70f78314081..d3019e4d0a0730c31ba7ab64e0f80ac44e6ecc8a:/src/msw/graphics.cpp diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 751be8e5b1..62d56a1023 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -1455,14 +1455,14 @@ void wxGDIPlusContext::GetPartialTextExtents(const wxString& text, wxArrayDouble StringFormat strFormat( StringFormat::GenericTypographic() ); size_t startPosition = 0; - size_t reminder = len; + size_t remainder = len; const size_t maxSpan = 32; CharacterRange* ranges = new CharacterRange[maxSpan] ; Region* regions = new Region[maxSpan]; - while( reminder > 0 ) + while( remainder > 0 ) { - size_t span = wxMin( maxSpan, reminder ); + size_t span = wxMin( maxSpan, remainder ); for( size_t i = 0 ; i < span ; ++i) { @@ -1479,7 +1479,7 @@ void wxGDIPlusContext::GetPartialTextExtents(const wxString& text, wxArrayDouble regions[i].GetBounds(&bbox,m_context); widths[startPosition+i] = bbox.Width; } - reminder -= span; + remainder -= span; startPosition += span; }