diff connectionitem.cpp @ 250:be483734bde5

* Make it possible for changeset items to take two or three lines of description, depending on how much there is * Some other small improvements to how changeset items are drawn (e.g. give them opaque white backgrounds)
author Chris Cannam
date Tue, 11 Jan 2011 17:58:14 +0000
parents 8fd71f570884
children
line wrap: on
line diff
--- a/connectionitem.cpp	Tue Jan 11 17:56:22 2011 +0000
+++ b/connectionitem.cpp	Tue Jan 11 17:58:14 2011 +0000
@@ -89,7 +89,12 @@
     float c_x = xscale * c_col + size/2;
     float p_x = xscale * p_col + size/2;
 
-    p.moveTo(c_x, yscale * c_row + size);
+    // ensure line reaches the box, even if it's in a small height --
+    // doesn't matter if we overshoot as the box is opaque and has a
+    // greater Z value
+    p.moveTo(c_x, yscale * c_row + size - 20);
+
+    p.lineTo(c_x, yscale * c_row + size);
 
     if (p_col == c_col) {