Skip to content

Commit c61ae63

Browse files
committed
Hotfix time 0 timescale marker
1 parent 410c996 commit c61ae63

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Source/Plugins/LfpDisplayNodeAlpha/LfpDisplayCanvas.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,10 +1895,18 @@ void LfpTimescale::paint(Graphics& g)
18951895
g.drawText(timeScaleUnitLabel,5,0,100,getHeight(),Justification::left, false);
18961896

18971897
const int steps = labels.size() + 1;
1898-
for (int i = 1; i < steps; i++)
1898+
for (int i = 0; i < steps; i++)
18991899
{
19001900

19011901
// TODO: (kelly) added an extra spatial dimension to the timeline ticks, may be overkill
1902+
if (i == 0)
1903+
{
1904+
g.drawLine(1,
1905+
0,
1906+
1,
1907+
getHeight(),
1908+
3.0f);
1909+
}
19021910
if (i != 0 && i % 4 == 0)
19031911
{
19041912
g.drawLine(getWidth()/steps*i,
@@ -1924,7 +1932,7 @@ void LfpTimescale::paint(Graphics& g)
19241932
2.0f);
19251933
}
19261934

1927-
if (i % 2 == 0)
1935+
if (i != 0 && i % 2 == 0)
19281936
g.drawText(labels[i-1],getWidth()/steps*i+3,0,100,getHeight(),Justification::left, false);
19291937
}
19301938

0 commit comments

Comments
 (0)