diff --git a/UndertaleModTool/Converters/GridConverter.cs b/UndertaleModTool/Converters/GridConverter.cs index 4f2e28a20..911e08a04 100644 --- a/UndertaleModTool/Converters/GridConverter.cs +++ b/UndertaleModTool/Converters/GridConverter.cs @@ -13,6 +13,8 @@ public class GridConverter : IMultiValueConverter { public object Convert(object[] values, System.Type targetType, object parameter, System.Globalization.CultureInfo culture) { + if (values.Any(x => x is not double)) + return new Rect(); return new Rect(0, 0, (double)values[0], (double)values[1]); }