Fixes QTableWidget.setHorizontalHeaderItem crash (#633)
Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
This commit is contained in:
parent
738590b631
commit
92b7a9b798
@ -188,7 +188,7 @@ Napi::Value QTableWidgetWrap::setHorizontalHeaderItem(
|
||||
Napi::HandleScope scope(env);
|
||||
|
||||
int column = info[0].As<Napi::Number>().Int32Value();
|
||||
Napi::Object itemObject = info[0].As<Napi::Object>();
|
||||
Napi::Object itemObject = info[1].As<Napi::Object>();
|
||||
QTableWidgetItemWrap* itemWrap =
|
||||
Napi::ObjectWrap<QTableWidgetItemWrap>::Unwrap(itemObject);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user