mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[composer] Fix flip of N/S and E/W coordinates when using reprojected grids
This commit is contained in:
parent
2317f67451
commit
3af6dbc4e1
@ -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() ) ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user