Skip to content

Commit 3af6dbc

Browse files
committed
[composer] Fix flip of N/S and E/W coordinates when using reprojected grids
1 parent 2317f67 commit 3af6dbc

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
@@ -528,12 +528,12 @@ void QgsComposerMapGrid::drawGridCRSTransform( QgsRenderContext &context, double
528528
QList< QPair< double, QPolygonF > >::const_iterator yGridLineIt = yGridLines.constBegin();
529529
for ( ; yGridLineIt != yGridLines.constEnd(); ++yGridLineIt )
530530
{
531-
horizontalLines.push_back( qMakePair( yGridLineIt->first, QLineF( yGridLineIt->second.first(), yGridLineIt->second.last() ) ) );
531+
verticalLines.push_back( qMakePair( yGridLineIt->first, QLineF( yGridLineIt->second.first(), yGridLineIt->second.last() ) ) );
532532
}
533533
QList< QPair< double, QPolygonF > >::const_iterator xGridLineIt = xGridLines.constBegin();
534534
for ( ; xGridLineIt != xGridLines.constEnd(); ++xGridLineIt )
535535
{
536-
verticalLines.push_back( qMakePair( xGridLineIt->first, QLineF( xGridLineIt->second.first(), xGridLineIt->second.last() ) ) );
536+
horizontalLines.push_back( qMakePair( xGridLineIt->first, QLineF( xGridLineIt->second.first(), xGridLineIt->second.last() ) ) );
537537
}
538538

539539
}

0 commit comments

Comments
 (0)