Skip to content
Commit 1521ea85 authored by Michael Zhou's avatar Michael Zhou Committed by Alvin Wong
Browse files

Fix ruler performance problem

The ruler used to draw the marks no matter if they are visible. This
causes a performance problem as under high zoom levels, a large number
(equals to or more than the number of pixels along the width or height
of the canvas) of marks will be drawn. This patch changes the behavior,
let the ruler draw only the marks that are visible or partially visible.

Regression from ba60778b

BUG: 390041
Differential Revision: https://phabricator.kde.org/D10572
parent cca86ccd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment