In wxStringProperty::ValueToString(), regenerate composed value string also when it was empty. This is needed in cases where property's children were added before property itself was added to the wxPropertyGrid (fixes #12877).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,7 +95,9 @@ wxString wxStringProperty::ValueToString( wxVariant& value,
|
|||||||
if ( GetChildCount() && HasFlag(wxPG_PROP_COMPOSED_VALUE) )
|
if ( GetChildCount() && HasFlag(wxPG_PROP_COMPOSED_VALUE) )
|
||||||
{
|
{
|
||||||
// Value stored in m_value is non-editable, non-full value
|
// Value stored in m_value is non-editable, non-full value
|
||||||
if ( (argFlags & wxPG_FULL_VALUE) || (argFlags & wxPG_EDITABLE_VALUE) )
|
if ( (argFlags & wxPG_FULL_VALUE) ||
|
||||||
|
(argFlags & wxPG_EDITABLE_VALUE) ||
|
||||||
|
!s.length() )
|
||||||
{
|
{
|
||||||
// Calling this under incorrect conditions will fail
|
// Calling this under incorrect conditions will fail
|
||||||
wxASSERT_MSG( argFlags & wxPG_VALUE_IS_CURRENT,
|
wxASSERT_MSG( argFlags & wxPG_VALUE_IS_CURRENT,
|
||||||
|
Reference in New Issue
Block a user