mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdChart: Intervals now used rounded up/down time, not just rounded down time
This commit is contained in:
parent
7f429ff836
commit
441af1a4d0
1 changed files with 5 additions and 2 deletions
|
@ -470,8 +470,11 @@ static void renderInterval (
|
||||||
|
|
||||||
work = clipped.range.total ();
|
work = clipped.range.total ();
|
||||||
|
|
||||||
int start_offset = (start_mins / 15) + (spacing * (start_mins / 60));
|
auto start_block = quantizeTo15Minutes (start_mins) / 15;
|
||||||
int end_offset = (end_mins / 15) + (spacing * (end_mins / 60));
|
auto end_block = quantizeTo15Minutes (end_mins == 0 ? 60 : end_mins) / 15;
|
||||||
|
|
||||||
|
int start_offset = start_block + (spacing * (start_mins / 60));
|
||||||
|
int end_offset = end_block + (spacing * (end_mins / 60));
|
||||||
|
|
||||||
if (end_offset > start_offset)
|
if (end_offset > start_offset)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue