From 2586a044981ce567007ed0ce523e370c1ac4905b Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 20 Nov 2013 01:53:49 +0000 Subject: [PATCH] oops, fix a logic error in HexTextBox, fixes a number of bugs such as losing the address when editing a Ram watch entry --- BizHawk.Client.EmuHawk/CustomControls/HexTextBox.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/HexTextBox.cs b/BizHawk.Client.EmuHawk/CustomControls/HexTextBox.cs index 47473edf5c..a3f1eed73a 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/HexTextBox.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/HexTextBox.cs @@ -147,11 +147,11 @@ namespace BizHawk.Client.EmuHawk { if (val.HasValue) { - Text = String.Empty; + Text = String.Format(_addressFormatStr, val); } else { - Text = String.Format(_addressFormatStr, val); + Text = String.Empty; } } }