🐛 Avoid rendering false for paths with no text
This commit is contained in:
parent
60b3e7d126
commit
4c81d41ab8
1 changed files with 1 additions and 1 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue