[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:04
Message-ID: 20110103101604.CAF8BAC8B0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1211220 by asimha:

Ensure that RA0 and Dec0 don't take on nonsense values.

 M  +4 -2      deepstarcomponent.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/deepstarcomponent.cpp \
#1211219:1211220 @@ -410,8 +410,10 @@
     // repeated in all trixels that they will pass through, although
     // the factuality of this statement needs to be verified
 
-    Q_ASSERT( center.ra0().Degrees() != 0 );
-    Q_ASSERT( center.dec0().Degrees() != 0 );
+    // Ensure that we have deprecessed the (RA, Dec) to (RA0, Dec0)
+    Q_ASSERT( center.ra0().Degrees() >= 0.0 );
+    Q_ASSERT( center.dec0().Degrees() <= 90.0 );
+
     m_skyMesh->intersect( center.ra0().Degrees(), center.dec0().Degrees(), radius, \
(BufNum) OBJ_NEAREST_BUF );  
     MeshIterator region( m_skyMesh, OBJ_NEAREST_BUF );


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

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