fix for a crash with wxUSE_STL == 1: test for failed conversion in GetValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
891bb1943f
commit
39ccbf9a31
@ -518,7 +518,8 @@ wxString wxTextCtrl::GetValue() const
|
||||
#else
|
||||
wxCharBuffer buffer( wxConvLocal.cWC2WX( wxConvUTF8.cMB2WC( text ) ) );
|
||||
#endif
|
||||
tmp = buffer;
|
||||
if ( buffer )
|
||||
tmp = buffer;
|
||||
|
||||
g_free( text );
|
||||
#else
|
||||
|
@ -518,7 +518,8 @@ wxString wxTextCtrl::GetValue() const
|
||||
#else
|
||||
wxCharBuffer buffer( wxConvLocal.cWC2WX( wxConvUTF8.cMB2WC( text ) ) );
|
||||
#endif
|
||||
tmp = buffer;
|
||||
if ( buffer )
|
||||
tmp = buffer;
|
||||
|
||||
g_free( text );
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user