Needed to convert string variable's type from wxChar* to wxString because result of wxGetTranslation was assigned to it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a349c43322
commit
18b5bcb067
@ -740,13 +740,13 @@ wxString wxBoolProperty::GetValueAsString( int argFlags ) const
|
||||
if ( argFlags & wxPG_UNEDITABLE_COMPOSITE_FRAGMENT )
|
||||
return wxEmptyString;
|
||||
|
||||
const wxChar* notFmt;
|
||||
wxString notFmt;
|
||||
if ( wxPGGlobalVars->m_autoGetTranslation )
|
||||
notFmt = _("Not %s");
|
||||
else
|
||||
notFmt = wxT("Not %s");
|
||||
notFmt = wxS("Not %s");
|
||||
|
||||
return wxString::Format(notFmt,m_label.c_str());
|
||||
return wxString::Format(notFmt.c_str(), m_label.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user