Skip to content
Permalink
Browse files
Better placement for y-coordinate labels
  • Loading branch information
mhugent committed Feb 14, 2013
1 parent 049fb23 commit 38c521459d54f325ae8a9ab2e1112f2d9b87a989
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgscomposerruler.cpp
@@ -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.