Revision 773138
Go back to digest for 17th February 2008Bug Fixes in Educational
Inge Wallin committed changes in /trunk/KDE/kdeedu/marble:
Fix issue with integer overflow and some cleaning.
We have found a number of places where integer overflow occured due to squaring of the radius. The radius can potentially be very big (it measures the current radius of the earth in pixels, which can get big in high zoom levels) and squaring it can cause overflow.
This patch fixes all instances that I could find by using either 64 bit integers or doubles.
File Changes
Modified 6 files
- /trunk/KDE/kdeedu/marble
- /ChangeLog
- /src/lib/GlobeScanlineTextureMapper.cpp
- /src/lib/MarbleMap.cpp
- /src/lib/PlaceMarkLayout.cpp
- /src/lib/TextureColorizer.cpp
- /src/lib/VectorMap.cpp
6 files changed in total