Mercurial > hg > svgui
diff layer/TimeRulerLayer.cpp @ 832:44acc0e5e004
Don't label time zero, it gets cut off by opaque end layer
author | Chris Cannam |
---|---|
date | Wed, 13 Aug 2014 21:45:59 +0100 |
parents | 1d526ba11a24 |
children | 4a578a360011 |
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp Wed Aug 13 16:42:25 2014 +0100 +++ b/layer/TimeRulerLayer.cpp Wed Aug 13 21:45:59 2014 +0100 @@ -237,6 +237,10 @@ paint.save(); + // Do not label time zero - we now overlay an opaque area over + // time < 0 which would cut it in half + int minlabel = 1; // ms + while (1) { // frame is used to determine where to draw the lines, so it @@ -262,7 +266,7 @@ break; } - if (x >= rect.x() - 50) { + if (x >= rect.x() - 50 && ms >= minlabel) { RealTime rt = RealTime::fromMilliseconds(ms);