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 65ba7dcd15
commit 15e3f95712

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.x = round (m->position/_metric->units_per_pixel) + self.x0;
pos.y = self.y1; /* bottom edge */ pos.y = self.y1; /* bottom edge */
if (pos.x < 0) {
continue;
}
if (fd != last_font_description) { if (fd != last_font_description) {
layout->set_font_description (*fd); layout->set_font_description (*fd);
last_font_description = fd; last_font_description = fd;