one less annoying compiler warning.
[ardour.git] / libs / canvas / rectangle.cc
index ac05003693970325153322f44ce843049ea8e30f..1b75584849ef4500300f7afb06741e6b10518fa6 100644 (file)
@@ -43,14 +43,14 @@ Rectangle::Rectangle (Canvas* c, Rect const & rect)
 {
 }
 
-Rectangle::Rectangle (Group* g)
-       : Item (g)
+Rectangle::Rectangle (Item* parent)
+       : Item (parent)
        , _outline_what ((What) (LEFT | RIGHT | TOP | BOTTOM))
 {
 }
 
-Rectangle::Rectangle (Group* g, Rect const & rect)
-       : Item (g)
+Rectangle::Rectangle (Item* parent, Rect const & rect)
+       : Item (parent)
        , _rect (rect)
        , _outline_what ((What) (LEFT | RIGHT | TOP | BOTTOM))
 {
@@ -118,8 +118,8 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
                        
                        if (_outline_what & RIGHT) {
                                /* vertical line: move x-coordinate by 0.5 pixels */
-                               context->move_to (self.x1 + 0.5, self.y0);
-                               context->line_to (self.x1 + 0.5, self.y1);
+                               context->move_to (self.x1 - 0.5, self.y0);
+                               context->line_to (self.x1 - 0.5, self.y1);
                        }
                        
                }