[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/lib/geodata/handlers/kml
From: Patrick Spendrin <ps_ml () gmx ! de>
Date: 2008-10-19 17:45:09
Message-ID: 1224438309.963722.25023.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 873567 by sengels:
fix it so that tackat has two of his three issues fixed - I don't think I can make it \
much slower though to resemble gwenview a bit more
M +3 -3 KmlCoordinatesTagHandler.cpp
--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlCoordinatesTagHandler.cpp \
#873566:873567 @@ -45,12 +45,12 @@
Q_ASSERT( parser.isStartElement() && parser.isValidElement( kmlTag_coordinates ) \
);
GeoStackItem parentItem = parser.parentElement();
-
- if( parentItem.nodeAs<GeoDataGeometry>() ) {
+
+ if( parentItem.nodeAs<GeoDataGeometry>() || \
parentItem.nodeAs<GeoDataPlacemark>() ) {
QStringList coordinatesLines = parser.readElementText().trimmed().split( ' \
', QString::SkipEmptyParts ); Q_FOREACH( const QString& line, coordinatesLines ) {
QStringList coordinates = line.trimmed().split( ',' );
- if ( parentItem.represents( kmlTag_Point ) ) {
+ if ( parentItem.nodeAs<GeoDataPlacemark>() ) {
GeoDataPoint* coord = new GeoDataPoint();
if ( coordinates.size() == 2 ) {
coord->set( DEG2RAD * coordinates.at( 0 ).toDouble(),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic