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
Please register or sign in to comment