From f5b2c1cc7879a9ac155dd08ca211fc87be6e2fbf Mon Sep 17 00:00:00 2001 From: PB Date: Wed, 23 Aug 2023 14:52:38 +0200 Subject: [PATCH] Fix typo in wxColourDialog documentation The code example in wxColourDialog documentation used a wrong type to create wxColourDialog instance. See #23793, #23794. (cherry picked from commit 547d49f68bc9241f693e85a4731689ee6d2ac189) --- interface/wx/colordlg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/wx/colordlg.h b/interface/wx/colordlg.h index d2c52f63dc..f7a2ce18d9 100644 --- a/interface/wx/colordlg.h +++ b/interface/wx/colordlg.h @@ -27,7 +27,7 @@ wxColourData data; data.SetColour(initialColourToUse); - wxColourData dlg(this, &data); + wxColourDialog dlg(this, &data); dlg.Bind(wxEVT_COLOUR_CHANGED, [](wxColourDialogEvent& event) { Redraw(event.GetColour()); });