[Marble-commits] branches/KDE/4.3/kdeedu/marble/src/lib/geodata/data

Torsten Rahn tackat at kde.org
Fri Jul 24 23:16:32 CEST 2009


SVN commit 1002075 by rahn:

- Committing a regression which would render any altitude 
  in a line string zero if it gets normalized.



 M  +2 -1      GeoDataLineString.cpp  


--- branches/KDE/4.3/kdeedu/marble/src/lib/geodata/data/GeoDataLineString.cpp #1002074:1002075
@@ -287,10 +287,11 @@
          ++itCoords ) {
 
         itCoords->geoCoordinates( lon, lat );
+        qreal alt = itCoords->altitude();
         GeoDataCoordinates::normalizeLonLat( lon, lat );
 
         GeoDataCoordinates normalizedCoords( *itCoords );
-        normalizedCoords.set( lon, lat );
+        normalizedCoords.set( lon, lat, alt );
         normalizedLineString << normalizedCoords;        
     }
 


More information about the Marble-commits mailing list