Now the "simple" loops.
This commit is contained in:
+2
-2
@@ -733,9 +733,9 @@ void BitmapText::AddAttribute( size_t iPos, const Attribute &attr )
|
||||
int iLines = 0;
|
||||
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 )
|
||||
break;
|
||||
iAdjustedPos -= length;
|
||||
|
||||
Reference in New Issue
Block a user