change placement of ruler divider so that the lower line is at the specified height, rather than the upper

This commit is contained in:
Paul Davis 2014-11-26 13:53:33 +02:00
parent 697d8a2732
commit 84cb8913b0

View File

@ -195,13 +195,13 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
cr->set_line_width (1.0);
set_source_rgba (cr, _divider_color_top);
cr->move_to (self.x0, self.y0 + _divide_height+0.5);
cr->line_to (self.x1, self.y0 + _divide_height+0.5);
cr->move_to (self.x0, self.y0 + _divide_height-1.0+0.5);
cr->line_to (self.x1, self.y0 + _divide_height-1.0+0.5);
cr->stroke ();
set_source_rgba (cr, _divider_color_bottom);
cr->move_to (self.x0, self.y0 + _divide_height+1.5);
cr->line_to (self.x1, self.y0 + _divide_height+1.5);
cr->move_to (self.x0, self.y0 + _divide_height+0.5);
cr->line_to (self.x1, self.y0 + _divide_height+0.5);
cr->stroke ();