Use getIndentSize(...) in renderSubTotal

This commit is contained in:
Thomas Lauf 2018-12-28 00:06:54 +01:00
parent 4484d507e3
commit 551605a8ba

View file

@ -417,10 +417,7 @@ static std::string renderSubTotal (
std::stringstream out;
if (rules.getBoolean ("reports." + type + ".totals"))
{
int indent = (rules.getBoolean ("reports." + type + ".month") ? 4 : 0) +
(rules.getBoolean ("reports." + type + ".week") ? 4 : 0) +
(rules.getBoolean ("reports." + type + ".day") ? 3 : 0) +
(rules.getBoolean ("reports." + type + ".weekday") ? 4 : 0);
auto indent = getIndentSize (type, rules);
int spacing = rules.getInteger ("reports." + type + ".spacing");
auto cell = rules.getInteger ("reports." + type + ".cell");