# HG changeset patch # User Chris Cannam # Date 1427722117 -3600 # Node ID 5a978d540d556e37625bbf332aef8cdcf45e09c8 # Parent a61a779d73dfe483c7c0fc2f52c38e6ab3bc49c1# Parent 1c529a22a6a7ae3711c1770a5d3495506da258b4 Merge diff -r a61a779d73df -r 5a978d540d55 view/Overview.cpp --- a/view/Overview.cpp Mon Mar 30 14:28:04 2015 +0100 +++ b/view/Overview.cpp Mon Mar 30 14:28:37 2015 +0100 @@ -235,13 +235,14 @@ int x0 = getXForFrame(f0); int x1 = getXForFrame(f1); + if (x1 <= x0) x1 = x0 + 1; std::pair extent(x0, x1); if (extents.find(extent) == extents.end()) { - y += height() / 10 + 1; + y += height() / 10 + 1; extents.insert(extent); QRect vr(x0, y, x1 - x0, height() - 2 * y); @@ -251,19 +252,19 @@ } QPainterPath without; - without.addRoundedRect(primary, 8, 8); + without.addRoundedRect(primary, 4, 4); without.addRect(rect()); paint.setPen(Qt::NoPen); paint.setBrush(getFillWithout()); paint.drawPath(without); paint.setBrush(getFillWithin()); - paint.drawRoundedRect(primary, 8, 8); + paint.drawRoundedRect(primary, 4, 4); foreach (QRect vr, rects) { paint.setBrush(Qt::NoBrush); - paint.setPen(QPen(getForeground(), 2)); - paint.drawRoundedRect(vr, 8, 8); + paint.setPen(QPen(Qt::gray, 2)); + paint.drawRoundedRect(vr, 4, 4); } paint.end();