Skip to content
Snippets Groups Projects
Commit 0dcbc365 authored by Rashmi Singhal's avatar Rashmi Singhal Committed by GitHub
Browse files

Merge pull request #1132 from dfdan/master

do not try to parseRectangle on whole-canvas annotations (fixes #567)
parents 7f17329f ebdc95ad
Branches
Tags
No related merge requests found
......@@ -90,10 +90,12 @@
return deferred;
} else if (annotation.on.selector.value.indexOf('<svg') !== -1) {
shapeArray = _this.svgOverlay.parseSVG(annotation.on.selector.value, annotation);
} else {
} else if (annotation.on.selector.value.indexOf('xywh=') !== -1) {
shapeArray = _this.parseRectangle(annotation.on.selector.value, annotation);
} else {
return deferred;
}
} else if (annotation.on && typeof annotation.on === 'string') {
} else if (annotation.on && typeof annotation.on === 'string' && annotation.on.indexOf('xywh=') !== -1) {
shapeArray = _this.parseRectangle(annotation.on, annotation);
} else {
return deferred;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment