Hi,

Here's a small fix for compiling marble on Win32 w/ MSVC.
Visual Studio has a habit of issuing an error if an ambiguous overloaded
function is called with non-uniquely identifiable parameters, in this case
fabs().

This patch will fix this.

Greetings
-Michael

Index: marble/src/lib/Projections/SphericalProjection.cpp
===================================================================
--- marble/src/lib/Projections/SphericalProjection.cpp  (revision 871408)
+++ marble/src/lib/Projections/SphericalProjection.cpp  (working copy)
@@ -263,7 +263,7 @@
 
                 // We take the manhattan length as a distance approximation
                 // that can be too big by a factor of sqrt(2)
-                qreal distance =   fabs(x - previousX) + fabs(y -
previousY);
+                qreal distance =   fabs((qreal)(x - previousX)) +
fabs((qreal)(y - previousY));
 
                 // FIXME: This is a work around: remove as soon as we
handle horizon crossing
                 if ( globeHidesPoint || previousGlobeHidesPoint ) { 

Attachment: marble_win32_compile_fix.patch
Description: Binary data

_______________________________________________
Kde-windows mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-windows

Reply via email to