bug in wxString::Printf() corrected (the length of the string wasn't updated
correctly) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -345,6 +345,10 @@ void wxString::AllocBeforeWrite(size_t nLen)
|
|||||||
pData->Unlock();
|
pData->Unlock();
|
||||||
AllocBuffer(nLen);
|
AllocBuffer(nLen);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// update the string length
|
||||||
|
pData->nDataLength = nLen;
|
||||||
|
}
|
||||||
|
|
||||||
wxASSERT( !GetStringData()->IsShared() ); // we must be the only owner
|
wxASSERT( !GetStringData()->IsShared() ); // we must be the only owner
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user