🐛 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) {
|
Svg.prototype.renderPathText = function(path) {
|
||||||
let text = path.attributes.get("data-text");
|
let text = path.attributes.get("data-text");
|
||||||
if (!text) return false;
|
if (!text) return "";
|
||||||
let attributes = path.attributes.renderIfPrefixIs("data-text-");
|
let attributes = path.attributes.renderIfPrefixIs("data-text-");
|
||||||
// Sadly aligning text along a patch can't be done in CSS only
|
// Sadly aligning text along a patch can't be done in CSS only
|
||||||
let offset = "";
|
let offset = "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue