Bug Fix - color.alternate ignoring color/forcecolor overrides

- Fixed bug that caused the alternate line coloration to ignore whether
  color was enabled or not.  This (once again) added color codes to the
  shadow file.  This happens repeatedly - I think a unit test for this
  mistake is needed.
This commit is contained in:
Paul Beckingham 2009-10-06 10:12:07 -04:00
parent 010ef7cd07
commit 80a3196097

View file

@ -530,9 +530,12 @@ int runCustomReport (
}
// If an alternating row color is specified, notify the table.
if (context.config.get ("color", true) || context.config.get (std::string ("_forcecolor"), false))
{
Color alternate (context.config.get ("color.alternate", ""));
if (alternate.nontrivial ())
table.setTableAlternateColor (alternate);
}
// Limit the number of rows according to the report definition.
int maximum = context.config.get (std::string ("report.") + report + ".limit", (int)0);