[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/handlers/kml
Dennis Nienhüser
earthwings at gentoo.org
Tue Sep 7 23:55:43 CEST 2010
SVN commit 1172708 by nienhueser:
Accept kml documents containing a Placemark as root item. Original fix by Thibaut Gridel in rev. 1172705.
BUG: 202702
M +4 -0 KmlPlacemarkTagHandler.cpp
--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlPlacemarkTagHandler.cpp #1172707:1172708
@@ -51,6 +51,10 @@
if( parentItem.represents( kmlTag_Folder ) || parentItem.represents( kmlTag_Document ) ) {
parentItem.nodeAs<GeoDataContainer>()->append( placemark );
return placemark;
+ } else if ( parentItem.first.first == kmlTag_kml ) {
+ GeoDataDocument* doc = geoDataDoc( parser );
+ doc->append( placemark );
+ return placemark;
} else {
delete placemark;
return 0;
More information about the Marble-commits
mailing list