[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/skycomponents
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2011-01-03 10:16:02
Message-ID: 20110103101602.427DAAC8B5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1211219 by asimha:

Oops! Important fix to the previous revision, that was critical in
making the code work. So the previous version doesn't work, unlike
advertised in the commit log, but this one fixes it!

 M  +1 -1      deepstarcomponent.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/deepstarcomponent.cpp #1211218:1211219
@@ -428,7 +428,7 @@
         for( int i = 0; i < sbl->getBlockCount(); ++i ) {
             StarBlock *block = sbl->block( i );
             for( int j = 0; j < block->getStarCount(); ++j ) {
-                StarObject *star = block->star( i );
+                StarObject *star = block->star( j );
                 if( star->mag() > maglim )
                     break; // Stars are organized by magnitude, so this should work
                 if( star->angularDistanceTo( &center ).Degrees() <= radius )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic