Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 2317f67
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 133 deletions.
12 changes: 6 additions & 6 deletions src/core/qgspoint.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 2317f67

Please sign in to comment.