[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [marble] src/lib/Projections: Spherical Projection: keep the visibility information
From:       Thibaut Gridel <tgridel () free ! fr>
Date:       2013-07-31 21:25:50
Message-ID: E1V4du2-0003tR-Je () scm ! kde ! org
[Download RAW message or body]

Git commit b81b53660a72de9eda3a82ef839b680476a97aa5 by Thibaut Gridel.
Committed on 31/07/2013 at 20:14.
Pushed by tgridel into branch 'master'.

Spherical Projection: keep the visibility information

Thanks: Rene for pointing it out

M  +2    -3    src/lib/Projections/SphericalProjection.cpp

http://commits.kde.org/marble/b81b53660a72de9eda3a82ef839b680476a97aa5

diff --git a/src/lib/Projections/SphericalProjection.cpp b/src/lib/Projections/SphericalProjection.cpp
index 05fe7b7..fafbe6f 100644
--- a/src/lib/Projections/SphericalProjection.cpp
+++ b/src/lib/Projections/SphericalProjection.cpp
@@ -128,7 +128,7 @@ bool SphericalProjection::screenCoordinates( const GeoDataCoordinates &coordinat
                                              bool &globeHidesPoint ) const
 {
     pointRepeatNum = 0;
-    screenCoordinates( coordinates, viewport, *x, y, globeHidesPoint );
+    bool visible = screenCoordinates( coordinates, viewport, *x, y, globeHidesPoint );
 
     // Skip placemarks that are outside the screen area
     if ( *x + size.width() / 2.0 < 0.0 || *x >= viewport->width() + size.width() / 2.0 
@@ -141,8 +141,7 @@ bool SphericalProjection::screenCoordinates( const GeoDataCoordinates &coordinat
     // This projection doesn't have any repetitions, 
     // so the number of screen points referring to the geopoint is one.
     pointRepeatNum = 1;
-    globeHidesPoint = false;
-    return true;
+    return visible;
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic