Skip to content
Permalink
Browse files
Better placement for y-coordinate labels
  • Loading branch information
mhugent committed Feb 14, 2013
1 parent 049fb23 commit 38c5214
Showing 1 changed file with 1 addition and 1 deletion.
@@ -68,7 +68,7 @@ void QgsComposerRuler::paintEvent( QPaintEvent* event )
{
double pixelCoord = mTransform.map( QPointF( 0, markerPos ) ).y();
p.drawLine( 0, pixelCoord, RULER_MIN_SIZE, pixelCoord );
p.drawText( QPointF( RULER_MIN_SIZE / 2.0, pixelCoord + 2.0 ), QString::number( markerPos ) );
p.drawText( QPointF( 0, pixelCoord - 2.0 ), QString::number( markerPos ) );
}
markerPos += 10.0;
}

0 comments on commit 38c5214

Please sign in to comment.