[Kstars-devel] branches/work/kdeedu_kstars_htm/kstars/kstars/skycomponents

James Bowlin bowlin at mindspring.com
Mon Aug 6 21:20:37 CEST 2007


SVN commit 697099 by jbowlin:

Only update the asteroid positions if they are going to be drawn.

CCMAIL: kstars-devel at kde.org



 M  +2 -4      asteroidscomponent.cpp  


--- branches/work/kdeedu_kstars_htm/kstars/kstars/skycomponents/asteroidscomponent.cpp #697098:697099
@@ -90,13 +90,11 @@
 
 void AsteroidsComponent::update( KStarsData *data, KSNumbers *num )
 {
-    //int cnt(0);
+    if ( ! selected() ) return;
+
     foreach ( SkyObject *o, objectList() ) {
 		KSPlanetBase *p = (KSPlanetBase*) o;
 		p->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
-        //if ( ++cnt > 10 ) continue;
-        //printf("%2d: (%8.3f, %8.3f )\n", cnt, p->ra()->Degrees(), p->dec()->Degrees() );
-
     }
 }
 


More information about the Kstars-devel mailing list