Skip to content

Commit 1b4eae9

Browse files
committed
Blank artwork should be persistent
1 parent 001fbef commit 1b4eae9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/js/src/manager/screen/_TextAndGraphicManager.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ class _TextAndGraphicManager extends _TextAndGraphicManagerBase {
5353
*/
5454
_getBlankArtwork () {
5555
if (this._blankArtwork === null) {
56-
this._blankArtwork = new SdlArtwork();
57-
this._blankArtwork.setType(FileType.GRAPHIC_PNG);
58-
this._blankArtwork.setName('blankArtwork');
59-
this._blankArtwork.setFileData(new Array(50));
56+
this._blankArtwork = new SdlArtwork('blankArtwork', FileType.GRAPHIC_PNG, new Array(50), true);
6057
}
6158
return this._blankArtwork;
6259
}

0 commit comments

Comments
 (0)