diff options
Diffstat (limited to 'UVtools.Core/FileFormats/FileFormat.cs')
-rw-r--r-- | UVtools.Core/FileFormats/FileFormat.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/FileFormats/FileFormat.cs b/UVtools.Core/FileFormats/FileFormat.cs index 3bd20c5..21eef2f 100644 --- a/UVtools.Core/FileFormats/FileFormat.cs +++ b/UVtools.Core/FileFormats/FileFormat.cs @@ -565,7 +565,7 @@ namespace UVtools.Core.FileFormats if (SuppressRebuildProperties) return; if (e.PropertyName == nameof(LayerCount)) { - if (this[LayerCount - 1] is null) return; // Not initialized + if (LayerCount == 0 || this[LayerCount - 1] is null) return; // Not initialized LayerManager.RebuildLayersProperties(); RebuildGCode(); PrintTime = PrintTimeComputed; |