diff widgets/Panner.cpp @ 438:76cd1c89eb06

* minor tidy
author Chris Cannam
date Fri, 24 Oct 2008 16:21:57 +0000
parents 755243c67f59
children f4960f8ce798
line wrap: on
line diff
--- a/widgets/Panner.cpp	Fri Oct 24 14:52:40 2008 +0000
+++ b/widgets/Panner.cpp	Fri Oct 24 16:21:57 2008 +0000
@@ -156,15 +156,15 @@
 
     paint.setPen(palette().dark().color());
     paint.setBrush(bg);
-    paint.drawRect(0, 0, width(), height());
+    paint.drawRect(0, 0, width()-1, height()-1);
 
     QColor hl(m_thumbColour);
     hl.setAlpha(m_thumbAlpha);
 
     paint.setBrush(hl);
 
-    int rw = lrintf(width() * m_rectWidth);
-    int rh = lrintf(height() * m_rectHeight);
+    int rw = lrintf((width() - 1) * m_rectWidth);
+    int rh = lrintf((height() - 1) * m_rectHeight);
     if (rw < 2) rw = 2;
     if (rh < 2) rh = 2;