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

Torsten Rahn tackat at kde.org
Mon May 3 15:35:01 CEST 2010


SVN commit 1122294 by rahn:

- Fix crash for bluemarble and other themes due to uninitialized
  GeoSceneTexture::m_storageLayoutMode.



 M  +5 -2      GeoSceneTexture.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneTexture.cpp #1122293:1122294
@@ -32,8 +32,9 @@
 
 GeoSceneTexture::GeoSceneTexture( const QString& name )
     : GeoSceneAbstractDataset( name ),
-      m_sourceDir( "" ),
-      m_installMap( "" ),
+      m_sourceDir(),
+      m_installMap(),
+      m_storageLayoutMode(Marble),
       m_serverLayout( new MarbleServerLayout( this ) ),
       m_levelZeroColumns( defaultLevelZeroColumns ),
       m_levelZeroRows( defaultLevelZeroRows ),
@@ -154,6 +155,8 @@
     QString relFileName;
 
     switch ( m_storageLayoutMode ) {
+    default:
+        mDebug() << Q_FUNC_INFO << "Invalid storage layout mode! Falling back to default.";
     case GeoSceneTexture::Marble:
         relFileName = QString( "%1/%2/%3/%3_%4.%5" )
             .arg( themeStr() )


More information about the Marble-commits mailing list