From 60845f62b328e7fb470b1a0257a91bfadcc77975 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 31 Jan 2011 19:15:24 +0000 Subject: [PATCH] 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 --- editor/extensions/ext-shapes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/extensions/ext-shapes.js b/editor/extensions/ext-shapes.js index fa18f3fa..92f5db99 100644 --- a/editor/extensions/ext-shapes.js +++ b/editor/extensions/ext-shapes.js @@ -280,7 +280,7 @@ svgEditor.addExtension("shapes", function() { }); // 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); cur_shape.setAttribute('d', current_d); canv.pathActions.fixEnd(cur_shape);