mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Merge pull request #324 from jainanshul/regression_matrix_constructor
Fix regression in matrix constructor that takes in array of default v…
This commit is contained in:
commit
baada9d639
@ -126,6 +126,8 @@ NAN_METHOD(Matrix::New) {
|
||||
info[2]->IntegerValue());
|
||||
} else if (info.Length() == 4 && info[0]->IsInt32() && info[1]->IsInt32() &&
|
||||
info[2]->IsInt32() && info[3]->IsArray()) {
|
||||
mat = new Matrix(info[0]->IntegerValue(), info[1]->IntegerValue(),
|
||||
info[2]->IntegerValue(), info[3]->ToObject());
|
||||
} else { // if (info.Length() == 5) {
|
||||
Matrix *other = Nan::ObjectWrap::Unwrap<Matrix>(info[0]->ToObject());
|
||||
int x = info[1]->IntegerValue();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user