diff options
author | Jeffrey Stedfast <jeff@xamarin.com> | 2014-01-21 23:05:26 +0400 |
---|---|---|
committer | Jeffrey Stedfast <jeff@xamarin.com> | 2014-01-21 23:05:26 +0400 |
commit | 4dca4a28d7ecc2c4df8a4d58e74b8902d0283b53 (patch) | |
tree | 1981e2c302d61e001a2faebd6ddef94e49675cf6 /main/src/addins/MonoDevelop.HexEditor | |
parent | 6595fd87f0a88386995b58d4882e17dc608b51a3 (diff) |
[Debugger] Fixed loading of strings into the HexEditorVisualizer
Fixes bug #17276
Diffstat (limited to 'main/src/addins/MonoDevelop.HexEditor')
-rw-r--r-- | main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs index 93802e0de1..aa29d2b94f 100644 --- a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs +++ b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs @@ -186,7 +186,7 @@ namespace MonoDevelop.HexEditor } if (i < count) { - var chunk = array.Substring ((int) offset, (count - i)); + var chunk = array.Substring ((int) offset / 2, ((count + 1) - i) / 2); var buf = Encoding.Unicode.GetBytes (chunk); for (int j = 0; j < buf.Length; j++) |