bugfix. detecting empty 'd' attribute now correct.

This commit is contained in:
Teja 2015-07-16 11:58:52 +02:00
parent c70b446d65
commit 1f2f29336e

View file

@ -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) {