summaryrefslogtreecommitdiffstats
path: root/src/image.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.js')
-rw-r--r--src/image.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.js b/src/image.js
index 9c1db21..a0adf31 100644
--- a/src/image.js
+++ b/src/image.js
@@ -18,7 +18,7 @@ SVG.Image = SVG.invent({
img.onload = function() {
var p = self.parent(SVG.Pattern)
- if(!p) return
+ if(p === null) return
// ensure image size
if (self.width() == 0 && self.height() == 0)