Skip to content

Commit

Permalink
Better placement for y-coordinate labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 14, 2013
1 parent 049fb23 commit 38c5214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgscomposerruler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 38c5214

Please sign in to comment.