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

Jens-Michael Hoffmann jensmh at gmx.de
Thu May 13 06:56:01 CEST 2010


SVN commit 1126061 by jmhoffmann:

DownloadRegionDialog: Simplify updateTextureLayer.

 M  +1 -7      DownloadRegionDialog.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1126060:1126061
@@ -340,13 +340,7 @@
 {
     mDebug() << "DownloadRegionDialog::updateTextureLayer";
     AbstractScanlineTextureMapper const * const textureMapper = d->m_model->textureMapper();
-    if ( textureMapper ) {
-        d->m_textureLayer = textureMapper->textureLayer();
-    }
-    else {
-        d->m_textureLayer = 0;
-        mDebug() << "DownloadRegionDialog::updateTextureLayer: no texture mapper";
-    }
+    d->m_textureLayer = textureMapper ? textureMapper->textureLayer() : 0;
     updateTilesCount();
 }
 


More information about the Marble-commits mailing list