diff --git a/stella/src/gui/ByteGridWidget.cxx b/stella/src/gui/ByteGridWidget.cxx index af022c1c2..e545647d6 100644 --- a/stella/src/gui/ByteGridWidget.cxx +++ b/stella/src/gui/ByteGridWidget.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: ByteGridWidget.cxx,v 1.4 2005-06-17 17:34:01 stephena Exp $ +// $Id: ByteGridWidget.cxx,v 1.5 2005-06-17 18:17:15 stephena Exp $ // // Based on code from ScummVM - Scumm Interpreter // Copyright (C) 2002-2004 The ScummVM project @@ -390,9 +390,8 @@ void ByteGridWidget::endEditMode() return; } - // Append a leading 0 when necessary - if(value < 16) // In hex, this is the largest single-digit value - _editString = "0" + _editString; + // Correctly format the data for viewing + _editString = Debugger::to_hex_8(value); _valueStringList[_selectedItem] = _editString; _valueList[_selectedItem] = value;