1
0
Fork 0

🐛 Avoid rendering false for paths with no text

This commit is contained in:
Joost De Cock 2018-08-06 16:02:49 +02:00
parent 60b3e7d126
commit 4c81d41ab8

View file

@ -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 = "";