Skip to content

Commit

Permalink
Use variable cell_size
Browse files Browse the repository at this point in the history
  • Loading branch information
lauft committed Jan 21, 2019
1 parent 654a209 commit 3d473e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/CmdChart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ());
Expand Down

0 comments on commit 3d473e0

Please sign in to comment.