From: Jaakko Salli Date: Tue, 13 Jul 2010 15:54:45 +0000 (+0000) Subject: wxArrayStringProperty::m_delimiter default value was missing. Also cleaned up relevan... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/33e478497fa5b722a3d84dca2ccffb10ce181910 wxArrayStringProperty::m_delimiter default value was missing. Also cleaned up relevant string formatting. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index c1590d9e30..ae059f0e69 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -2388,6 +2388,7 @@ wxArrayStringProperty::wxArrayStringProperty( const wxString& label, const wxArrayString& array ) : wxPGProperty(label,name) { + m_delimiter = '"'; SetValue( array ); } @@ -2455,9 +2456,8 @@ wxArrayStringProperty::ArrayStringToString( wxString& dst, if ( flags & Escape ) { - preas[0] = delimiter; - pdr = wxS("\\"); - pdr += delimiter; + preas = delimiter; + pdr = wxS("\\") + static_cast(delimiter); } if ( itemCount )