[Kstars-devel] branches/KDE/3.5/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Tue Jan 29 16:06:47 CET 2008


SVN commit 768150 by harris:

Applying patch to fix bug #156845 (Custom catalog objects not 
reloaded in observing list).  Thanks for the patch, Carl!

No need to forward-port this fix; custom objects already get reloaded 
in observing lists in 4.x.

BUG: 156845
CCMAIL: kstars-devel at kde.org



 M  +8 -0      kstarsdata.cpp  


--- branches/KDE/3.5/kdeedu/kstars/kstars/kstarsdata.cpp #768149:768150
@@ -2321,6 +2321,14 @@
 		if ( name==starList.at(i)->gname( false ) ) return starList.at(i);
 	}
 
+       //Custom catalogs. 
+        for ( unsigned int i=0; i<CustomCatalogs.count(); ++i ) {
+                QPtrList<SkyObject> custCatObjs = CustomCatalogs.at(i)->objList();
+                for ( unsigned int j = 0; j < custCatObjs.count(); ++j ) {
+                        if ( name==custCatObjs.at(j)->name() ) return custCatObjs.at(j);
+                }
+        }
+
 	//reach here only if argument is not matched
 	return NULL;
 }


More information about the Kstars-devel mailing list