Skip to content
Permalink
Browse files

[composer] Use proper prime and double prime symbols for grid annotat…

…ions

(because good typography and cartography go hand in hand..!)
  • Loading branch information
nyalldawson committed Sep 8, 2014
1 parent 7ee05af commit 2317f6745117aae3ecdff5cc4fc62b00d1da349e
Showing with 133 additions and 133 deletions.
  1. +6 −6 src/core/qgspoint.cpp
  2. +127 −127 tests/src/core/testqgspoint.cpp
@@ -226,12 +226,12 @@ QString QgsPoint::toDegreesMinutesSeconds( int thePrecision, const bool useSuffi
QString myStrSecondsY = padded ? QString( "%1" ).arg( mySecondsY, digits, 'f', thePrecision, QChar( '0' ) ) : QString::number( mySecondsY, 'f', thePrecision );

QString rep = myXSign + QString::number( myDegreesX ) + QChar( 176 ) +
myMinutesX + QString( "'" ) +
myStrSecondsX + QString( "\"" ) +
myMinutesX + QChar( 0x2032 ) +
myStrSecondsX + QChar( 0x2033 ) +
myXHemisphere + QString( "," ) +
myYSign + QString::number( myDegreesY ) + QChar( 176 ) +
myMinutesY + QString( "'" ) +
myStrSecondsY + QString( "\"" ) +
myMinutesY + QChar( 0x2032 ) +
myStrSecondsY + QChar( 0x2033 ) +
myYHemisphere;
return rep;
}
@@ -312,10 +312,10 @@ QString QgsPoint::toDegreesMinutes( int thePrecision, const bool useSuffix, cons
QString myStrMinutesY = padded ? QString( "%1" ).arg( myFloatMinutesY, digits, 'f', thePrecision, QChar( '0' ) ) : QString::number( myFloatMinutesY, 'f', thePrecision );

QString rep = myXSign + QString::number( myDegreesX ) + QChar( 176 ) +
myStrMinutesX + QString( "'" ) +
myStrMinutesX + QChar( 0x2032 ) +
myXHemisphere + QString( "," ) +
myYSign + QString::number( myDegreesY ) + QChar( 176 ) +
myStrMinutesY + QString( "'" ) +
myStrMinutesY + QChar( 0x2032 ) +
myYHemisphere;
return rep;
}

0 comments on commit 2317f67

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