Fixed broken wxMultiChoiceProperty::ValueToString()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -406,7 +406,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void GenerateValueAsString( wxString* target ) const;
|
void GenerateValueAsString( wxVariant& value, wxString* target ) const;
|
||||||
|
|
||||||
// Returns translation of values into string indices.
|
// Returns translation of values into string indices.
|
||||||
wxArrayInt GetValueAsIndices() const;
|
wxArrayInt GetValueAsIndices() const;
|
||||||
|
@@ -1731,7 +1731,7 @@ wxMultiChoiceProperty::~wxMultiChoiceProperty()
|
|||||||
|
|
||||||
void wxMultiChoiceProperty::OnSetValue()
|
void wxMultiChoiceProperty::OnSetValue()
|
||||||
{
|
{
|
||||||
GenerateValueAsString(&m_display);
|
GenerateValueAsString(m_value, &m_display);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString wxMultiChoiceProperty::ValueToString( wxVariant& value,
|
wxString wxMultiChoiceProperty::ValueToString( wxVariant& value,
|
||||||
@@ -1742,16 +1742,17 @@ wxString wxMultiChoiceProperty::ValueToString( wxVariant& value,
|
|||||||
return m_display;
|
return m_display;
|
||||||
|
|
||||||
wxString s;
|
wxString s;
|
||||||
GenerateValueAsString(&s);
|
GenerateValueAsString(value, &s);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxMultiChoiceProperty::GenerateValueAsString( wxString* target ) const
|
void wxMultiChoiceProperty::GenerateValueAsString( wxVariant& value,
|
||||||
|
wxString* target ) const
|
||||||
{
|
{
|
||||||
wxArrayString strings;
|
wxArrayString strings;
|
||||||
|
|
||||||
if ( m_value.GetType() == wxPG_VARIANT_TYPE_ARRSTRING )
|
if ( value.GetType() == wxPG_VARIANT_TYPE_ARRSTRING )
|
||||||
strings = m_value.GetArrayString();
|
strings = value.GetArrayString();
|
||||||
|
|
||||||
wxString& tempStr = *target;
|
wxString& tempStr = *target;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
Reference in New Issue
Block a user