Skip to content
Permalink
Browse files

[composer] Fix N/S and E/W are reversed in grid annotation strings

(sponsored by NIWA, New Zealand)
  • Loading branch information
nyalldawson committed Sep 3, 2014
1 parent 52c519e commit 8c091bbda511709d32288019208138dda9fc4549
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposermapgrid.cpp
@@ -774,15 +774,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 );
}

0 comments on commit 8c091bb

Please sign in to comment.
You can’t perform that action at this time.