forked from mia/Aegisub
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:
parent
2ee6f6e904
commit
15cca59679
1 changed files with 5 additions and 2 deletions
|
@ -486,8 +486,11 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SetValue(wxVariant const& var) override {
|
bool SetValue(wxVariant const& var) override {
|
||||||
value << var;
|
if (var.GetType() == "wxDataViewIconText") {
|
||||||
return true;
|
value << var;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Render(wxRect rect, wxDC *dc, int state) override {
|
bool Render(wxRect rect, wxDC *dc, int state) override {
|
||||||
|
|
Loading…
Reference in a new issue