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)
This commit is contained in:
PB 2023-08-23 14:52:38 +02:00 committed by Vadim Zeitlin
parent 6b328645dc
commit f5b2c1cc78

View File

@ -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());
});