[Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars/skycomponents

Akarsh Simha akarshsimha at gmail.com
Sun Jun 8 02:20:09 CEST 2008


SVN commit 818174 by asimha:

StarBlockCache::getBlock() now dissociates the StarBlock from its
parent StarBlockList, as specified in it's documentation.

CCMAIL: kstars-devel at kde.org



 M  +4 -0      starblockcache.cpp  


--- branches/kstars/summer/kdeedu/kstars/kstars/skycomponents/starblockcache.cpp #818173:818174
@@ -70,6 +70,10 @@
 StarBlock *StarBlockCache::getBlock() {
 
     if(last -> useID == -1 || last -> useID != useID) {
+	if(last -> parent) {
+	    last -> parent -> removeAll(last);
+	    last -> parent = NULL;
+	}
 	useBlock(last);
 	return first;
     }


More information about the Kstars-devel mailing list