mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix reversed lat/long in grid annotations
This commit is contained in:
parent
b6c982a2c0
commit
2d2340e916
@ -491,7 +491,7 @@ 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 );
|
||||
}
|
||||
@ -499,7 +499,7 @@ void QgsComposerMapGrid::drawCoordinateAnnotations( QPainter* p, const QList< QP
|
||||
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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user