more changes to make wx compile without implicit wxString->char* conversion (for STL build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1748,7 +1748,7 @@ void wxDC::DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
|
||||
|
||||
SIZE sizeRect;
|
||||
const size_t len = string.length();
|
||||
if ( !::GetTextExtentPoint32(GetHdc(), string, len, &sizeRect) )
|
||||
if ( !::GetTextExtentPoint32(GetHdc(), string.wx_str(), len, &sizeRect) )
|
||||
{
|
||||
wxLogLastError(_T("GetTextExtentPoint32()"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user