Fixed bug where Raphael icons appeared correct, but messud up on export

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1959 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2011-01-31 19:15:24 +00:00
parent ba028851bc
commit 60845f62b3
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ svgEditor.addExtension("shapes", function() {
}); });
// Make sure shape uses absolute values // Make sure shape uses absolute values
if(current_d.charAt(0) === 'm') { if(/[a-z]/.test(current_d)) {
current_d = cur_lib.data[cur_shape_id] = canv.pathActions.convertPath(cur_shape); current_d = cur_lib.data[cur_shape_id] = canv.pathActions.convertPath(cur_shape);
cur_shape.setAttribute('d', current_d); cur_shape.setAttribute('d', current_d);
canv.pathActions.fixEnd(cur_shape); canv.pathActions.fixEnd(cur_shape);