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:
Vadim Zeitlin
1999-01-05 22:53:29 +00:00
parent e2a3cc0c34
commit 471aebdd3e

View File

@@ -345,6 +345,10 @@ void wxString::AllocBeforeWrite(size_t nLen)
pData->Unlock();
AllocBuffer(nLen);
}
else {
// update the string length
pData->nDataLength = nLen;
}
wxASSERT( !GetStringData()->IsShared() ); // we must be the only owner
}