From 7d8958e1afd93b81318d9e9eb6ca64b2fc7df044 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 12 Dec 2022 11:18:18 -0800 Subject: [PATCH] Fix editor max length Passed as wrong parameter --- src/propgrid/editors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 98ddcf8956..8e2205a3af 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -2033,7 +2033,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrlAndButton( const wxPoint& pos, if ( !property->IsValueUnspecified() ) text = property->GetValueAsString(property->HasFlag(wxPG_PROP_READONLY)?0:wxPG_EDITABLE_VALUE); - return GenerateEditorTextCtrl(pos,sz,text,but,property->GetMaxLength()); + return GenerateEditorTextCtrl(pos, sz, text, but, 0, property->GetMaxLength()); } // -----------------------------------------------------------------------