diff --git a/core/block_svg.js b/core/block_svg.js index 9c6cb90ae..4745b8d32 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -1510,7 +1510,7 @@ Blockly.BlockSvg.prototype.setWarningText = function(text, opt_id) { if (!newText) { this.warning.dispose(); } - changedState = oldText == newText; + changedState = oldText != newText; } } if (changedState && this.rendered) {