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

Torsten Rahn tackat at kde.org
Tue Jul 28 14:20:07 CEST 2009


SVN commit 1003584 by rahn:

- Catch possible chance for an infinite recursion.



 M  +4 -0      MarbleWidget.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1003583:1003584
@@ -260,6 +260,10 @@
 
 void MarbleWidget::setRadius(int radius)
 {
+    if ( radius == d->m_map->radius() ) {
+        return;
+    }
+        
     d->m_map->setRadius( radius );
 
     // We only have to repaint the background every time if the earth


More information about the Marble-commits mailing list