[libcalamares] Off-by-one folded the world in half

- Dropped the sign from longitudes, wrapping the west onto the east
This commit is contained in:
Adriaan de Groot 2019-12-10 17:11:10 +01:00
parent 1880eb5148
commit 08dc9011d6

View File

@ -223,7 +223,7 @@ TZZone::TZZone( const QString& region, const char* zoneName, const QString& coun
if ( cooSplitPos > 0 ) if ( cooSplitPos > 0 )
{ {
m_latitude = getRightGeoLocation( position.mid( 0, cooSplitPos ) ); m_latitude = getRightGeoLocation( position.mid( 0, cooSplitPos ) );
m_longitude = getRightGeoLocation( position.mid( cooSplitPos + 1 ) ); m_longitude = getRightGeoLocation( position.mid( cooSplitPos ) );
} }
} }