diff --git a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs index f5709963..0232eed0 100644 --- a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs +++ b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs @@ -193,6 +193,9 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs { foreach (CustomOption eo in mvarCustomOptions) { + // Do not process invisible CustomOptions; this results in a crash + if (!eo.Visible) continue; + Control ctl = CustomOptionControls[eo.PropertyName]; if (ctl is NumericUpDown) {