Commit ff744aca authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Disable debug comments that litter the logs

parent 8450f009
...@@ -463,7 +463,13 @@ Vector2f Projector::toScreenVec(const SkyPoint* o, bool oRefract, bool* onVisibl ...@@ -463,7 +463,13 @@ Vector2f Projector::toScreenVec(const SkyPoint* o, bool oRefract, bool* onVisibl
Y = o->dec().radians(); Y = o->dec().radians();
} }
if( !( std::isfinite( Y ) && std::isfinite( dX ) ) ) { if( !( std::isfinite( Y ) && std::isfinite( dX ) ) )
{
return Vector2f(0,0);
// JM: Enable this again later when trying to find a solution for it
// As it is now creating too much noise in the log file.
/*
qDebug() << "Assert in Projector::toScreenVec failed!"; qDebug() << "Assert in Projector::toScreenVec failed!";
qDebug() << "using AltAz?" << m_vp.useAltAz << " Refract? " << oRefract; qDebug() << "using AltAz?" << m_vp.useAltAz << " Refract? " << oRefract;
const SkyObject *obj; const SkyObject *obj;
...@@ -473,8 +479,9 @@ Vector2f Projector::toScreenVec(const SkyPoint* o, bool oRefract, bool* onVisibl ...@@ -473,8 +479,9 @@ Vector2f Projector::toScreenVec(const SkyPoint* o, bool oRefract, bool* onVisibl
} }
qDebug() << "dX = " << dX << " and isfinite(dX) is" << std::isfinite(dX); qDebug() << "dX = " << dX << " and isfinite(dX) is" << std::isfinite(dX);
qDebug() << "Y = " << Y << " and isfinite(Y) is" << std::isfinite(Y); qDebug() << "Y = " << Y << " and isfinite(Y) is" << std::isfinite(Y);
return Vector2f(0,0);
//Q_ASSERT( false ); //Q_ASSERT( false );
*/
} }
dX = KSUtils::reduceAngle(dX, -dms::PI, dms::PI); dX = KSUtils::reduceAngle(dX, -dms::PI, dms::PI);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment