From fb643bd6f7100ca2b6e9db7fbf557902b6f5a8f2 Mon Sep 17 00:00:00 2001 From: Kavanaugh Latiolais Date: Tue, 21 Jun 2016 21:44:29 -0400 Subject: [PATCH] Fix for issue #38 Args was passed to bwipp instead of generated opts --- node-bwipjs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-bwipjs.js b/node-bwipjs.js index f7b2abc2..63230b10 100755 --- a/node-bwipjs.js +++ b/node-bwipjs.js @@ -105,7 +105,7 @@ module.exports.toBuffer = function(args, callback) { // Call into the BWIPP cross-compiled code try { - bwipp()(bw, bcid, text, args); + bwipp()(bw, bcid, text, opts); bw.bitmap().getPNG(rot, callback); } catch (e) { // Invoking this callback is synchronous.