[Marble-commits] KDE/kdeedu/marble/src/lib

Dennis Nienhüser earthwings at gentoo.org
Sun Sep 12 23:01:35 CEST 2010


SVN commit 1174576 by nienhueser:

Check whether a map theme exists to prevent a crash (hopefully, can't verify it here) when setting the projection while no map theme is set. See http://svn.reviewboard.kde.org/r/5323/
CCBUG: 240979

 M  +1 -1      MarbleModel.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleModel.cpp #1174575:1174576
@@ -561,7 +561,7 @@
 
 void MarbleModel::setupTextureMapper( Projection projection )
 {
-    if ( !d->m_mapTheme->map()->hasTextureLayers() )
+    if ( !d->m_mapTheme || !d->m_mapTheme->map()->hasTextureLayers() )
         return;
   // FIXME: replace this with an approach based on the factory method pattern.
     delete d->m_texmapper;


More information about the Marble-commits mailing list