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 );