Bug 322364 - In TileId.cpp, use of a fonction returning radians where degrees are expected.
Summary: In TileId.cpp, use of a fonction returning radians where degrees are expected.
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 1.5 (KDE 4.10)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 19:46 UTC by a.scheffler
Modified: 2014-04-27 10:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: Marble 1.7/KDE 4.12.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.