Bug Fix - missing color

- There's something wrong with Color::Color (int, int), so this is a
  temporary fix.
This commit is contained in:
Paul Beckingham
2009-10-05 23:53:28 -04:00
parent 175dd3eb4f
commit e5fce9ac08
4 changed files with 21 additions and 17 deletions

View File

@@ -582,7 +582,7 @@ void TDB::undo ()
row = table.addRow ();
table.addCell (row, 0, *name);
table.addCell (row, 1, renderAttribute (*name, before.get (*name)));
table.setCellColor (row, 1, Color (Color::red));
table.setCellColor (row, 1, Color (Color::red, Color::nocolor));
}
foreach (name, before)
@@ -599,8 +599,8 @@ void TDB::undo ()
if (priorValue != currentValue)
{
table.setCellColor (row, 1, Color (Color::red));
table.setCellColor (row, 2, Color (Color::green));
table.setCellColor (row, 1, Color (Color::red, Color::nocolor));
table.setCellColor (row, 2, Color (Color::green, Color::nocolor));
}
}
}
@@ -610,7 +610,7 @@ void TDB::undo ()
row = table.addRow ();
table.addCell (row, 0, *name);
table.addCell (row, 2, renderAttribute (*name, after.get (*name)));
table.setCellColor (row, 2, Color (Color::green));
table.setCellColor (row, 2, Color (Color::green, Color::nocolor));
}
}
else
@@ -621,7 +621,7 @@ void TDB::undo ()
row = table.addRow ();
table.addCell (row, 0, name->first);
table.addCell (row, 2, renderAttribute (name->first, after.get (name->first)));
table.setCellColor (row, 2, Color (Color::green));
table.setCellColor (row, 2, Color (Color::green, Color::nocolor));
}
}