From c01bd0d5ef88d84d65aff3c510b8e1fb1261660c Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 1 Apr 2015 13:59:40 +0000 Subject: [PATCH] Hex Editor - fix text search in the find box --- .../tools/HexEditor/HexFind.cs | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs b/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs index 3f7c978622..9fa90ed1ca 100644 --- a/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs +++ b/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs @@ -75,14 +75,27 @@ namespace BizHawk.Client.EmuHawk Controls.Remove(FindBox); - FindBox = new HexTextBox + if (HexRadio.Checked) { - CharacterCasing = CharacterCasing.Upper, - Nullable = HexRadio.Checked, - Text = text, - Size = size, - Location = location - }; + + FindBox = new HexTextBox + { + CharacterCasing = CharacterCasing.Upper, + Nullable = HexRadio.Checked, + Text = text, + Size = size, + Location = location + }; + } + else + { + FindBox = new TextBox + { + Text = text, + Size = size, + Location = location + }; + } Controls.Add(FindBox); }