Debugger: Minor visual tweak in VariablesView.

- Expression evaluation results are now highlighted as changed when
  they're first added, since they're immediately of interest, unlike
  uninitialized variables that're first coming into scope.
This commit is contained in:
Rene Gollent
2014-12-16 16:57:17 -05:00
parent 9dcef0489e
commit c3f9f5550d
@@ -515,10 +515,19 @@ private:
void _CompareValues()
{
fValueChanged = false;
if (fValue != NULL && fPreviousValue.Type() != 0) {
BVariant newValue;
fValue->ToVariant(newValue);
fValueChanged = (fPreviousValue != newValue);
if (fValue != NULL) {
if (fPreviousValue.Type() != 0) {
BVariant newValue;
fValue->ToVariant(newValue);
fValueChanged = (fPreviousValue != newValue);
} else {
// for expression variables, always consider the initial
// value as changed, since their evaluation has just been
// requested, and thus their initial value is by definition
// new/of interest
fValueChanged = dynamic_cast<ExpressionVariableID*>(
fVariable->ID()) != NULL;
}
}
}