diff --git a/interface/wx/propgrid/property.h b/interface/wx/propgrid/property.h index 6af7f8ba80..9fea077579 100644 --- a/interface/wx/propgrid/property.h +++ b/interface/wx/propgrid/property.h @@ -100,8 +100,9 @@ struct wxPGPaintData */ #define wxPG_FLOAT_PRECISION wxS("Precision") -/** The text will be echoed as asterisks (wxTE_PASSWORD will be passed - to textctrl etc.). +/** Built-in attribute of type @c bool. Default value is @false, + When set tu @true, the text will be echoed as asterisks (wxTE_PASSWORD + will be passed to textctrl etc.). */ #define wxPG_STRING_PASSWORD wxS("Password") diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index bc48687991..7c6a523bca 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -145,9 +145,9 @@ bool wxStringProperty::DoSetAttribute( const wxString& name, wxVariant& value ) m_flags &= ~(wxPG_PROP_PASSWORD); if ( value.GetLong() ) m_flags |= wxPG_PROP_PASSWORD; RecreateEditor(); - return false; + return true; } - return true; + return false; } // -----------------------------------------------------------------------