From 33e478497fa5b722a3d84dca2ccffb10ce181910 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Tue, 13 Jul 2010 15:54:45 +0000 Subject: [PATCH] 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 --- src/propgrid/props.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) -- 2.45.2