From 9090642d4e27b76c9c3c9d26befab67732034f03 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Mon, 28 Dec 2020 20:22:04 +0100 Subject: [PATCH] Fixed a problem where custom boolean UDMF fields could not set be to false --- Source/Core/Controls/FieldsEditorRow.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Controls/FieldsEditorRow.cs b/Source/Core/Controls/FieldsEditorRow.cs index 3d7ffc07..3a4d78d7 100755 --- a/Source/Core/Controls/FieldsEditorRow.cs +++ b/Source/Core/Controls/FieldsEditorRow.cs @@ -260,12 +260,12 @@ namespace CodeImp.DoomBuilder.Controls // This defines the field public void Define(object value) { - //mxd. Don't count as defined when default value is passed - if(value.ToString() == fieldtype.GetDefaultValue().ToString()) return; - - // Now defined fieldtype.SetValue(value); this.Cells[2].Value = fieldtype.GetStringValue(); + + //mxd. Don't count as defined when default value is passed + if (value.ToString() == fieldtype.GetDefaultValue().ToString()) return; + this.DefaultCellStyle.ForeColor = (rowtype == FieldsEditorRowType.USERVAR ? SystemColors.HotTrack : SystemColors.WindowText); isdefined = true; }