Skip to content

Commit b6c982a

Browse files
committed
Fix swapped lat/long
1 parent 66e4895 commit b6c982a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/composer/qgscomposermapgrid.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -491,15 +491,15 @@ void QgsComposerMapGrid::drawCoordinateAnnotations( QPainter* p, const QList< QP
491491
QList< QPair< double, QLineF > >::const_iterator it = hLines.constBegin();
492492
for ( ; it != hLines.constEnd(); ++it )
493493
{
494-
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Latitude );
494+
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Longitude );
495495
drawCoordinateAnnotation( p, it->second.p1(), currentAnnotationString );
496496
drawCoordinateAnnotation( p, it->second.p2(), currentAnnotationString );
497497
}
498498

499499
it = vLines.constBegin();
500500
for ( ; it != vLines.constEnd(); ++it )
501501
{
502-
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Longitude );
502+
currentAnnotationString = gridAnnotationString( it->first, QgsComposerMap::Latitude );
503503
drawCoordinateAnnotation( p, it->second.p1(), currentAnnotationString );
504504
drawCoordinateAnnotation( p, it->second.p2(), currentAnnotationString );
505505
}

0 commit comments

Comments
 (0)