Bug 322364

Summary: In TileId.cpp, use of a fonction returning radians where degrees are expected.
Product: [Applications] marble Reporter: a.scheffler
Component: generalAssignee: marble-bugs
Status: RESOLVED FIXED    
Severity: normal CC: a.scheffler, shentey
Priority: NOR    
Version: 1.5 (KDE 4.10)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: Marble 1.7/KDE 4.12.0
Sentry Crash Report:

Description a.scheffler 2013-07-14 19:46:46 UTC
TileId.cpp line 44:
    int lat = GeoDataCoordinates::normalizeLat( coords.latitude(), GeoDataCoordinates::Degree ) * 1000000;
latitude() return radians. To correct it use "latitude(GeoDataCoordinates::Degree)"
    int lat = GeoDataCoordinates::normalizeLat( coords.latitude(GeoDataCoordinates::Degree), GeoDataCoordinates::Degree ) * 1000000;
Same for next line.

Reproducible: Always




I compiled Marble with the suggested modifications. I don't notice any flagrant change when i run Marble.