@flowaccount/pdfmake 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowaccount/pdfmake",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Client/server side PDF printing in pure JavaScript",
5
5
  "main": "src/printer.js",
6
6
  "browser": "build/pdfmake.js",
package/src/printer.js CHANGED
@@ -753,7 +753,7 @@ function renderVector(vector, patterns, pdfKitDoc) {
753
753
  }
754
754
 
755
755
  function renderImage(image, x, y, pdfKitDoc) {
756
- if (!image.image || image._width === 0 || image._height === 0) {
756
+ if (!image.image || image._width === 0 && image._height === 0) {
757
757
  return;
758
758
  }
759
759
  var opacity = isNumber(image.opacity) ? image.opacity : 1;