bugfix. detecting empty 'd' attribute now correct.
This commit is contained in:
parent
c70b446d65
commit
1f2f29336e
1 changed files with 2 additions and 2 deletions
|
|
@ -62,8 +62,8 @@ Snap.plugin(function (Snap, Element, Paper, global) {
|
|||
//if(elem.type !== 'path') console.log("bake: converting " + elem.type + " to path");
|
||||
var path_elem = elem.convertToPath();
|
||||
|
||||
if (!path_elem || path_elem.attr(d) === '')
|
||||
return 'M 0 0';
|
||||
if (!path_elem || path_elem.attr('d') === '' || path_elem.attr('d') === null)
|
||||
return;
|
||||
|
||||
// Rounding coordinates to dec decimals
|
||||
if (dec || dec === 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue