Skip to content

Commit

Permalink
Load GeoDataGroungOverlay in AnnotationPlugin too.
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorMatirov committed Jan 10, 2015
1 parent a2b0345 commit 40a9b85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/render/annotate/AnnotatePlugin.cpp
Expand Up @@ -398,6 +398,11 @@ void AnnotatePlugin::loadAnnotationFile()
m_graphicsItems.append( polylineAnnotation );
}
m_marbleWidget->model()->treeModel()->addFeature( m_annotationDocument, newPlacemark );
} else if ( feature->nodeType() == GeoDataTypes::GeoDataGroundOverlayType ) {
GeoDataGroundOverlay *overlay = static_cast<GeoDataGroundOverlay*>( feature );
GeoDataGroundOverlay *newOverlay = new GeoDataGroundOverlay( *overlay );
m_marbleWidget->model()->treeModel()->addFeature( m_annotationDocument, newOverlay );
displayOverlayFrame( newOverlay );
}
}
m_marbleWidget->centerOn( document->latLonAltBox() );
Expand Down

0 comments on commit 40a9b85

Please sign in to comment.