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