[Marble-commits] branches/KDE/4.3/kdeedu/marble/src/plugins/render/geodata

Patrick Spendrin ps_ml at gmx.de
Mon Jul 13 00:41:42 CEST 2009


SVN commit 995539 by sengels:

fix display of "direct" styles
backport of r995538

 M  +5 -2      GeoRendererView.cpp  


--- branches/KDE/4.3/kdeedu/marble/src/plugins/render/geodata/GeoRendererView.cpp #995538:995539
@@ -196,11 +196,14 @@
         return false;
     }
 
-    /// hard coded to use only the "normal" style
     QString mapped = styleUrl;
     const GeoDataStyleMap& styleMap = m_root->styleMap( styleUrl.remove( '#' ) );
 
-    mapped = styleMap.value( QString( "normal" ) );
+    /// hard coded to use only the "normal" style
+    if( !styleMap.value( QString( "normal" ) ).isEmpty() ) {
+        mapped = styleMap.value( QString( "normal" ) );
+    }
+        
     mapped.remove( '#' );
 
     if( object->geometryId() == GeoDataPolygonId ) {


More information about the Marble-commits mailing list