13
0

do not plot ruler marks that are left of the current (scroll-adjusted) canvas edge

This commit is contained in:
Paul Davis 2024-05-29 14:13:47 -06:00
parent 1dba8f9906
commit 69d63bac92

View File

@ -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;