do not plot ruler marks that are left of the current (scroll-adjusted) canvas edge
This commit is contained in:
parent
65ba7dcd15
commit
15e3f95712
@ -170,6 +170,10 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
||||
pos.x = round (m->position/_metric->units_per_pixel) + self.x0;
|
||||
pos.y = self.y1; /* bottom edge */
|
||||
|
||||
if (pos.x < 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (fd != last_font_description) {
|
||||
layout->set_font_description (*fd);
|
||||
last_font_description = fd;
|
||||
|
Loading…
Reference in New Issue
Block a user