Skip to content
Permalink
Browse files

[composer] Fix flip of N/S and E/W coordinates when using reprojected…

… grids
  • Loading branch information
nyalldawson committed Sep 8, 2014
1 parent 2317f67 commit 3af6dbc4e1fc49b4b755a542e9583573365a4bd2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposermapgrid.cpp
@@ -528,12 +528,12 @@ void QgsComposerMapGrid::drawGridCRSTransform( QgsRenderContext &context, double
QList< QPair< double, QPolygonF > >::const_iterator yGridLineIt = yGridLines.constBegin();
for ( ; yGridLineIt != yGridLines.constEnd(); ++yGridLineIt )
{
horizontalLines.push_back( qMakePair( yGridLineIt->first, QLineF( yGridLineIt->second.first(), yGridLineIt->second.last() ) ) );
verticalLines.push_back( qMakePair( yGridLineIt->first, QLineF( yGridLineIt->second.first(), yGridLineIt->second.last() ) ) );
}
QList< QPair< double, QPolygonF > >::const_iterator xGridLineIt = xGridLines.constBegin();
for ( ; xGridLineIt != xGridLines.constEnd(); ++xGridLineIt )
{
verticalLines.push_back( qMakePair( xGridLineIt->first, QLineF( xGridLineIt->second.first(), xGridLineIt->second.last() ) ) );
horizontalLines.push_back( qMakePair( xGridLineIt->first, QLineF( xGridLineIt->second.first(), xGridLineIt->second.last() ) ) );
}

}

0 comments on commit 3af6dbc

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