Validate wxVariant type in hotkey CommandRenderer

This fixes a crash on Windows when double-clicking the draggable
separator between the column headers "Command" and "Description" in the
hotkey configuration dialog.
This commit is contained in:
arch1t3cht 2023-01-02 15:27:35 +01:00
parent 2ee6f6e904
commit 15cca59679

View file

@ -486,8 +486,11 @@ public:
}
bool SetValue(wxVariant const& var) override {
value << var;
return true;
if (var.GetType() == "wxDataViewIconText") {
value << var;
return true;
}
return false;
}
bool Render(wxRect rect, wxDC *dc, int state) override {