Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix reversed lat/long in grid annotations
  • Loading branch information
mhugent committed Jul 10, 2014
1 parent b6c982a commit 2d2340e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposermapgrid.cpp
Expand Up @@ -491,15 +491,15 @@ void QgsComposerMapGrid::drawCoordinateAnnotations( QPainter* p, const QList< QP
QList< QPair< double, QLineF > >::const_iterator it = hLines.constBegin();
for ( ; it != hLines.constEnd(); ++it )
{
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Longitude );
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Latitude );
drawCoordinateAnnotation( p, it->second.p1(), currentAnnotationString );
drawCoordinateAnnotation( p, it->second.p2(), currentAnnotationString );
}

it = vLines.constBegin();
for ( ; it != vLines.constEnd(); ++it )
{
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Latitude );
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Longitude );
drawCoordinateAnnotation( p, it->second.p1(), currentAnnotationString );
drawCoordinateAnnotation( p, it->second.p2(), currentAnnotationString );
}
Expand Down

0 comments on commit 2d2340e

Please sign in to comment.