Debugger: Slight tweak to changed value highlighting.

VariablesView::ModelNode:
- Only check if a variable's value has changed if we actually have a
  valid previous value to compare against. Otherwise, e.g. variables
  that just came into scope but haven't yet been initialized would
  show up as changed, while their value is, at that point completely
  uninteresting.
This commit is contained in:
Rene Gollent 2014-11-02 08:15:30 -05:00
parent 3fe7b3f72c
commit 2a6c54fb47

View File

@ -354,9 +354,8 @@ private:
private:
void _CompareValues()
{
if (fValue == NULL)
fValueChanged = false;
else {
fValueChanged = false;
if (fValue != NULL && fPreviousValue.Type() != 0) {
BVariant newValue;
fValue->ToVariant(newValue);
fValueChanged = (fPreviousValue != newValue);