From 6394ebc24a797555263b7f43db2b12be456b5a03 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 19 Sep 2013 16:09:47 +0200 Subject: fixed #146 filter out empty costumes --- gui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui.js') diff --git a/gui.js b/gui.js index e68d62c..b9971f2 100644 --- a/gui.js +++ b/gui.js @@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-September-18'; +modules.gui = '2013-September-19'; // Declarations @@ -4889,7 +4889,7 @@ SpriteIconMorph.prototype.step = function () { // SpriteIconMorph layout SpriteIconMorph.prototype.fixLayout = function () { - if (!this.thumbnail) {return null; } + if (!this.thumbnail || !this.label) {return null; } this.setWidth( this.thumbnail.width() -- cgit v1.3.1