[Marble-bugs] [marble] [Bug 322364] New: In TileId.cpp, use of a fonction returning radians where degrees are expected.

a.scheffler at free.fr a.scheffler at free.fr
Sun Jul 14 19:46:46 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=322364

            Bug ID: 322364
           Summary: In TileId.cpp, use of a fonction returning radians
                    where degrees are expected.
    Classification: Unclassified
           Product: marble
           Version: 1.5.0 (KDE 4.10.0)
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: a.scheffler at free.fr

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list