Skip to content

Commit

Permalink
Fix detection of CRS meter units
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent authored and mach0 committed Nov 23, 2011
1 parent d00fc4a commit a8ce8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -835,7 +835,7 @@ void QgsCoordinateReferenceSystem::setMapUnits()

QgsDebugMsg( "Projection has linear units of " + unit );

if ( unit == "Meter" )
if ( doubleNear( toMeter, 1.0 ) ) //Unit name for meters would be "metre"
mMapUnits = QGis::Meters;
else if ( unit == "Foot" )
mMapUnits = QGis::Feet;
Expand Down

0 comments on commit a8ce8af

Please sign in to comment.