Now the "simple" loops.

This commit is contained in:
Jason Felds
2013-04-28 16:43:50 -04:00
parent ce2cda0f85
commit 181de94f3d
+2 -2
View File
@@ -733,9 +733,9 @@ void BitmapText::AddAttribute( size_t iPos, const Attribute &attr )
int iLines = 0; int iLines = 0;
size_t iAdjustedPos = iPos; size_t iAdjustedPos = iPos;
FOREACH_CONST( wstring, m_wTextLines, line ) for (wstring const & line : m_wTextLines)
{ {
size_t length = line->length(); size_t length = line.length();
if( length >= iAdjustedPos ) if( length >= iAdjustedPos )
break; break;
iAdjustedPos -= length; iAdjustedPos -= length;