mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Use variable cell_size
This commit is contained in:
parent
654a209cb2
commit
3d473e0447
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ int renderChart (
|
|||
|
||||
// Add an empty string with no color, to reserve width, so this function
|
||||
// can simply concatenate to lines[i].str ().
|
||||
int total_width = (last_hour - first_hour + 1) * (chars_per_hour + spacing) - 1;
|
||||
int total_width = (last_hour - first_hour + 1) * (cell_size) - 1;
|
||||
std::vector <Composite> lines (num_lines);
|
||||
for (int i = 0; i < num_lines; ++i)
|
||||
lines[i].add (std::string (total_width, ' '), 0, Color ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue