# HG changeset patch # User Chris Cannam # Date 1407962759 -3600 # Node ID 44acc0e5e004758089bf10971f352eba26eeb4a3 # Parent 831188672987a0c2e6288d1cd5c34cd9d7385fcd Don't label time zero, it gets cut off by opaque end layer diff -r 831188672987 -r 44acc0e5e004 layer/TimeRulerLayer.cpp --- 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);