]> git.saurik.com Git - wxWidgets.git/commitdiff
In composed string values, entry for last children was often omitted if it was empty...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 1 Nov 2008 18:40:29 +0000 (18:40 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 1 Nov 2008 18:40:29 +0000 (18:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/property.cpp

index f443df08c8e092336a65ce2fc0f9fe92acd299cc..3ca05b7db987c2898913df28286ca89a8308ed1a 100644 (file)
@@ -856,13 +856,13 @@ void wxPGProperty::DoGenerateComposedValue( wxString& text,
         }
     }
 
-    // Remove superfluous semicolon and space
-    wxString rest;
-    if ( text.EndsWith(wxS("; "), &rest) )
-        text = rest;
-
     if ( (unsigned int)i < m_children.size() )
-        text += wxS("; ...");
+    {
+        if ( !text.EndsWith(wxS("; ")) )
+            text += wxS("; ...");
+        else
+            text += wxS("...");
+    }
 }
 
 wxString wxPGProperty::ValueToString( wxVariant& WXUNUSED(value),