diff --git a/Editor/AGS.Editor/Panes/GUIEditor.cs b/Editor/AGS.Editor/Panes/GUIEditor.cs index 3bf81d912f..6c0315ce2c 100644 --- a/Editor/AGS.Editor/Panes/GUIEditor.cs +++ b/Editor/AGS.Editor/Panes/GUIEditor.cs @@ -182,7 +182,7 @@ protected override void OnPropertyChanged(string propertyName, object oldValue) if ((_selectedControl != null) && (_selectedControl is GUIButton)) { GUIButton selectedButton = (GUIButton)_selectedControl; - if (selectedButton.Image > 0) + if (selectedButton.Image > 0 && (selectedButton.Image != (int)oldValue)) { int newWidth, newHeight; Utilities.GetSizeSpriteWillBeRenderedInGame(selectedButton.Image, out newWidth, out newHeight);