Revision 830717

Go back to digest for 13th July 2008

Bug Fixes in Educational

Henry de Valence committed changes in /trunk/KDE/kdeedu/marble/src:

Add a new function, GeoDataPoint::normalizeLonLat( double &lon, double &lat ) and made the map overview call it first before calculating.

The reason you would use this instead of just calling both normalize functions is that this take into accout the effects that they have on each other; eg if the north pole is crossed, the longitude should be inverted.

Also fixes some holes in the math of the previous GeoDataPoint::normalizeLat( double lat ) which allowed certain conditions to let invalid values escape.

The main practical effect of this for now is that the white dot disappearing thing now doesn't happen.

File Changes

Modified 3 files
  • /trunk/KDE/kdeedu/marble/src
  •   /lib/geodata/data/GeoDataPoint.cpp
  •   /lib/geodata/data/GeoDataPoint.h
  •   /plugins/marble/overviewmap/MarbleOverviewMap.cpp
3 files changed in total