@@ -475,23 +475,23 @@ void TestQgsComposerMapGrid::annotationFormats()
475
475
gridProjected.setAnnotationPrecision ( 1 );
476
476
477
477
// normal e/w
478
- QCOMPARE ( gridGeographic.gridAnnotationString ( 90 , QgsComposerMapGrid::Longitude ), QString ( " 90.0E " ) );
478
+ QCOMPARE ( gridGeographic.gridAnnotationString ( 90 , QgsComposerMapGrid::Longitude ), QString ( " 90.0 " ) + QChar ( 176 ) + QString ( " E " ) );
479
479
QCOMPARE ( gridProjected.gridAnnotationString ( 90 , QgsComposerMapGrid::Longitude ), QString ( " 90.0E" ) );
480
480
481
481
// 0 degrees
482
- QCOMPARE ( gridGeographic.gridAnnotationString ( 0 , QgsComposerMapGrid::Longitude ), QString ( " 0.0" ) );
482
+ QCOMPARE ( gridGeographic.gridAnnotationString ( 0 , QgsComposerMapGrid::Longitude ), QString ( " 0.0" ) + QChar ( 176 ) );
483
483
QCOMPARE ( gridProjected.gridAnnotationString ( 0 , QgsComposerMapGrid::Longitude ), QString ( " 0.0E" ) );
484
484
485
485
// 180 degrees
486
- QCOMPARE ( gridGeographic.gridAnnotationString ( 180 , QgsComposerMapGrid::Longitude ), QString ( " 180.0" ) );
486
+ QCOMPARE ( gridGeographic.gridAnnotationString ( 180 , QgsComposerMapGrid::Longitude ), QString ( " 180.0" ) + QChar ( 176 ) );
487
487
QCOMPARE ( gridProjected.gridAnnotationString ( 180 , QgsComposerMapGrid::Longitude ), QString ( " 180.0E" ) );
488
488
489
489
// normal n/s
490
- QCOMPARE ( gridGeographic.gridAnnotationString ( 45 , QgsComposerMapGrid::Latitude ), QString ( " 45.0N " ) );
490
+ QCOMPARE ( gridGeographic.gridAnnotationString ( 45 , QgsComposerMapGrid::Latitude ), QString ( " 45.0 " ) + QChar ( 176 ) + QString ( " N " ) );
491
491
QCOMPARE ( gridProjected.gridAnnotationString ( 45 , QgsComposerMapGrid::Latitude ), QString ( " 45.0N" ) );
492
492
493
493
// 0 north/south
494
- QCOMPARE ( gridGeographic.gridAnnotationString ( 0 , QgsComposerMapGrid::Latitude ), QString ( " 0.0" ) );
494
+ QCOMPARE ( gridGeographic.gridAnnotationString ( 0 , QgsComposerMapGrid::Latitude ), QString ( " 0.0" ) + QChar ( 176 ) );
495
495
QCOMPARE ( gridProjected.gridAnnotationString ( 0 , QgsComposerMapGrid::Latitude ), QString ( " 0.0N" ) );
496
496
497
497
}
0 commit comments