diff options
Diffstat (limited to 'src/bm/plotter.cpp')
-rw-r--r-- | src/bm/plotter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bm/plotter.cpp b/src/bm/plotter.cpp index e2ce934..a0e5d73 100644 --- a/src/bm/plotter.cpp +++ b/src/bm/plotter.cpp @@ -490,11 +490,15 @@ bool IndexPlotter::drawScenes( scene_far->addLine(xmin, y_base, xmax, y_base, QPen(color, 2)); } + if (baseTimestamp < 0) + baseTimestamp = timestamps.last(); + if ((baseTimestamp >= timestamps.first()) && (baseTimestamp <= timestamps.last())) { // Draw line indicating the base timestamp ... QColor color(50, 50, 255); const qreal btx = xmin + (baseTimestamp - loTimestamp) * xfact; - scene_far->addLine(btx, ymin, btx, ymax, QPen(color, 2)); + QGraphicsItem *btItem = scene_far->addLine(btx, ymin, btx, ymax, QPen(color, 2)); + btItem->setZValue(1); } const int nDispTimestamps = 8; |