[Marble-commits] KDE/kdeedu/marble/src/plugins/render/geodata
Patrick Spendrin
ps_ml at gmx.de
Mon Jul 13 00:41:12 CEST 2009
SVN commit 995538 by sengels:
fix display of "direct" styles
BUG:190930
M +5 -2 GeoRendererView.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/render/geodata/GeoRendererView.cpp #995537:995538
@@ -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