diff --git a/src/item/Item.js b/src/item/Item.js index 5843c73c..91b8f139 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -2026,7 +2026,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{ /** * Inserts this item below the specified item. * - * @param {Item} item the item above which it should be inserted + * @param {Item} item the item below which it should be inserted * @return {Item} the inserted item, or {@code null} if inserting was not * possible. */ diff --git a/src/svg/SVGImport.js b/src/svg/SVGImport.js index fb7a84be..03c5b32e 100644 --- a/src/svg/SVGImport.js +++ b/src/svg/SVGImport.js @@ -116,11 +116,14 @@ new function() { } function importPoly(node, type) { - var path = new Path(), - points = node.points; - path.moveTo(points.getItem(0)); - for (var i = 1, l = points.numberOfItems; i < l; i++) - path.lineTo(points.getItem(i)); + var coords = node.getAttribute('points').match( + /[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g), + points = []; + for (var i = 0, l = coords.length; i < l; i += 2) + points.push(new Point( + parseFloat(coords[i]), + parseFloat(coords[i + 1]))); + var path = new Path(points); if (type === 'polygon') path.closePath(); return path; diff --git a/src/text/TextItem.js b/src/text/TextItem.js index 55ed163a..ab3a1ba3 100644 --- a/src/text/TextItem.js +++ b/src/text/TextItem.js @@ -24,6 +24,7 @@ var TextItem = Item.extend(/** @lends TextItem# */{ _class: 'TextItem', _boundsSelected: true, + _transformContent: false, _serializeFields: { content: null },