diff --git a/src/imagemagick.cc b/src/imagemagick.cc index 383247a..85111b0 100644 --- a/src/imagemagick.cc +++ b/src/imagemagick.cc @@ -907,10 +907,10 @@ NAN_METHOD(GetConstPixels) { Magick::PixelPacket pixel = pixels[ i ]; Local color = Nan::New(); - color->Set(Nan::New("red").ToLocalChecked(), Nan::New(pixel.red)); - color->Set(Nan::New("green").ToLocalChecked(), Nan::New(pixel.green)); - color->Set(Nan::New("blue").ToLocalChecked(), Nan::New(pixel.blue)); - color->Set(Nan::New("opacity").ToLocalChecked(), Nan::New(pixel.opacity)); + color->Set(Nan::New("red").ToLocalChecked(), Nan::New(pixel.red)); + color->Set(Nan::New("green").ToLocalChecked(), Nan::New(pixel.green)); + color->Set(Nan::New("blue").ToLocalChecked(), Nan::New(pixel.blue)); + color->Set(Nan::New("opacity").ToLocalChecked(), Nan::New(pixel.opacity)); out->Set(i, color); }