From 4c81d41ab8f1a0305b342f0175f15c08ce46cdc3 Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Mon, 6 Aug 2018 16:02:49 +0200 Subject: [PATCH] :bug: Avoid rendering false for paths with no text --- src/svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg.js b/src/svg.js index be68e25b53d..e1062446af4 100644 --- a/src/svg.js +++ b/src/svg.js @@ -155,7 +155,7 @@ Svg.prototype.renderPath = function(path) { Svg.prototype.renderPathText = function(path) { let text = path.attributes.get("data-text"); - if (!text) return false; + if (!text) return ""; let attributes = path.attributes.renderIfPrefixIs("data-text-"); // Sadly aligning text along a patch can't be done in CSS only let offset = "";