diff --git a/html/markers.js b/html/markers.js
index 8601dc1..6d42f70 100644
--- a/html/markers.js
+++ b/html/markers.js
@@ -1288,7 +1288,7 @@ function svgShapeToSVG(shape, fillColor, strokeColor, strokeWidth, scale) {
let wi = shape.w * scale;
let he = shape.h * scale;
- if (!shape.path) {
+ if (shape.svg) {
let svg = shape.svg.replace('fillColor', fillColor).replace('strokeColor', strokeColor).replace('strokeWidth', strokeWidth);
svg = svg.replace('SIZE', 'width="' + wi + 'px" height="' + he + 'px"');
return svg;
@@ -1300,12 +1300,14 @@ function svgShapeToSVG(shape, fillColor, strokeColor, strokeWidth, scale) {
+ 'width="' + wi + '" height="' + he + '">'
+ '';
- let path = shape.path;
- if (! Array.isArray(path))
- path = [path];
- for (let i = 0; i < path.length; i++) {
- svg += '';
+ if (shape.path) {
+ let path = shape.path;
+ if (! Array.isArray(path))
+ path = [path];
+ for (let i = 0; i < path.length; i++) {
+ svg += '';
+ }
}
if (shape.accent) {