diff --git a/UVtools.GUI/Forms/FrmMutationPixelDimming.cs b/UVtools.GUI/Forms/FrmMutationPixelDimming.cs index 51e137e..a9eef4d 100644 --- a/UVtools.GUI/Forms/FrmMutationPixelDimming.cs +++ b/UVtools.GUI/Forms/FrmMutationPixelDimming.cs @@ -452,6 +452,12 @@ namespace UVtools.GUI.Forms return; } + if (BorderSize == 0 && DimsOnlyBorders) + { + MessageBox.Show("Border size must be positive in order to use \"Dims only the borders\" function.", Text, MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + var matrixTextbox = new[] { new MatrixTexbox(EvenPattern, tbEvenPattern),