Mercurial > hg > svgui
changeset 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 | 831188672987 |
children | 57d943a61943 |
files | layer/TimeRulerLayer.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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);