Debugger: Fix type value display in VariablesView.

- When retrieving the type to display for a given model node, ask its
  underlying value node for its corresponding type rather than relying
  on the one initially stored in the model, as the latter can change
  as a result of typecasts.
This commit is contained in:
Rene Gollent 2014-12-12 16:59:28 -05:00
parent 1c1ffc46d5
commit 40d79c0587

View File

@ -1428,7 +1428,10 @@ VariablesView::VariableTableModel::GetValueAt(void* object, int32 columnIndex,
return true;
case 2:
{
Type* type = node->GetType();
// use the type of the underlying value node, as it may
// be different from the initially assigned top level type
// due to casting
Type* type = node->NodeChild()->Node()->GetType();
if (type == NULL)
return false;