Commit 3855500a authored by Aurélien Gâteau's avatar Aurélien Gâteau

Fix missing ticks at ends of ruler

parent 04f88634
......@@ -739,7 +739,9 @@ void KLineal::drawScale( QPainter &painter )
if ( !mRelativeScale ) {
int digit;
int len;
for ( int x = 0; x < longLen; ++x ) {
// Draw from -1 to longLen rather than from 0 to longLen - 1 to take into
// account the offset applied in drawScaleTick
for ( int x = -1; x <= longLen; ++x ) {
if ( mLeftToRight ) {
digit = x + mOffset;
} else {
......
Markdown is supported
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