Skip to content
Permalink
Browse files
Revert "Fix reversed lat/long in grid annotations"
This reverts commit 2d2340e.
  • Loading branch information
mhugent committed Jul 10, 2014
1 parent 40d9145 commit dbfce8cd643072402e45aeb863204c09fb6fe947
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposermapgrid.cpp
@@ -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::Latitude );
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Longitude );
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::Longitude );
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Latitude );
drawCoordinateAnnotation( p, it->second.p1(), currentAnnotationString );
drawCoordinateAnnotation( p, it->second.p2(), currentAnnotationString );
}

0 comments on commit dbfce8c

Please sign in to comment.