]> git.saurik.com Git - wxWidgets.git/commitdiff
In wxStringProperty::ValueToString(), regenerate composed value string also when...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 19 Jan 2011 09:33:17 +0000 (09:33 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 19 Jan 2011 09:33:17 +0000 (09:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/props.cpp

index e399674bd500ee61015d33113200fb4577ddae91..c6e5d1352795d38c9063379740492c9b83d0c59f 100644 (file)
@@ -95,7 +95,9 @@ wxString wxStringProperty::ValueToString( wxVariant& value,
     if ( GetChildCount() && HasFlag(wxPG_PROP_COMPOSED_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
             wxASSERT_MSG( argFlags & wxPG_VALUE_IS_CURRENT,