diff --git a/include/wx/propgrid/props.h b/include/wx/propgrid/props.h index a9f2d3bedb..6db101447e 100644 --- a/include/wx/propgrid/props.h +++ b/include/wx/propgrid/props.h @@ -665,8 +665,8 @@ class WXDLLIMPEXP_PROPGRID wxDirProperty : public wxEditorDialogProperty { WX_PG_DECLARE_PROPERTY_CLASS(wxDirProperty) public: - wxDirProperty( const wxString& name = wxPG_LABEL, - const wxString& label = wxPG_LABEL, + wxDirProperty( const wxString& label = wxPG_LABEL, + const wxString& name = wxPG_LABEL, const wxString& value = wxEmptyString ); virtual ~wxDirProperty(); diff --git a/interface/wx/propgrid/props.h b/interface/wx/propgrid/props.h index fe486c9175..a304e3926d 100644 --- a/interface/wx/propgrid/props.h +++ b/interface/wx/propgrid/props.h @@ -688,8 +688,8 @@ protected: class wxDirProperty : public wxEditorDialogProperty { public: - wxDirProperty( const wxString& name = wxPG_LABEL, - const wxString& label = wxPG_LABEL, + wxDirProperty( const wxString& label = wxPG_LABEL, + const wxString& name = wxPG_LABEL, const wxString& value = wxEmptyString ); virtual ~wxDirProperty(); diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index 36c3d1c7f4..21dfeab21d 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -1855,8 +1855,8 @@ bool wxFlagsProperty::DoSetAttribute( const wxString& name, wxVariant& value ) wxPG_IMPLEMENT_PROPERTY_CLASS(wxDirProperty, wxEditorDialogProperty, TextCtrlAndButton) -wxDirProperty::wxDirProperty( const wxString& name, const wxString& label, const wxString& value ) - : wxEditorDialogProperty(name, label) +wxDirProperty::wxDirProperty( const wxString& label, const wxString& name, const wxString& value ) + : wxEditorDialogProperty(label, name) { m_flags &= ~wxPG_PROP_ACTIVE_BTN; // Property button enabled only in not read-only mode. SetValue(value);