mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Use getIndentSize(...) in renderSubTotal
This commit is contained in:
parent
4484d507e3
commit
551605a8ba
1 changed files with 1 additions and 4 deletions
|
@ -417,10 +417,7 @@ static std::string renderSubTotal (
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
if (rules.getBoolean ("reports." + type + ".totals"))
|
if (rules.getBoolean ("reports." + type + ".totals"))
|
||||||
{
|
{
|
||||||
int indent = (rules.getBoolean ("reports." + type + ".month") ? 4 : 0) +
|
auto indent = getIndentSize (type, rules);
|
||||||
(rules.getBoolean ("reports." + type + ".week") ? 4 : 0) +
|
|
||||||
(rules.getBoolean ("reports." + type + ".day") ? 3 : 0) +
|
|
||||||
(rules.getBoolean ("reports." + type + ".weekday") ? 4 : 0);
|
|
||||||
int spacing = rules.getInteger ("reports." + type + ".spacing");
|
int spacing = rules.getInteger ("reports." + type + ".spacing");
|
||||||
|
|
||||||
auto cell = rules.getInteger ("reports." + type + ".cell");
|
auto cell = rules.getInteger ("reports." + type + ".cell");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue