diff --git a/dist/docs/resources/js/paper.js b/dist/docs/resources/js/paper.js index 5a0ce20c..bde2b29e 100644 --- a/dist/docs/resources/js/paper.js +++ b/dist/docs/resources/js/paper.js @@ -5010,7 +5010,7 @@ var TextItem = this.TextItem = Item.extend({ setContent: function(content) { this._changed(Change.CONTENT); - this._content = content; + this._content = '' + content; }, getCharacterStyle: function() { diff --git a/dist/paper.js b/dist/paper.js index 5a0ce20c..bde2b29e 100644 --- a/dist/paper.js +++ b/dist/paper.js @@ -5010,7 +5010,7 @@ var TextItem = this.TextItem = Item.extend({ setContent: function(content) { this._changed(Change.CONTENT); - this._content = content; + this._content = '' + content; }, getCharacterStyle: function() { diff --git a/src/text/TextItem.js b/src/text/TextItem.js index 1e9efcee..df913394 100644 --- a/src/text/TextItem.js +++ b/src/text/TextItem.js @@ -80,7 +80,7 @@ var TextItem = this.TextItem = Item.extend(/** @lends TextItem# */{ setContent: function(content) { this._changed(Change.CONTENT); - this._content = content; + this._content = '' + content; }, /**