From kde-commits Mon Oct 31 21:19:10 2016 From: Jasem Mutlaq Date: Mon, 31 Oct 2016 21:19:10 +0000 To: kde-commits Subject: [kstars] kstars/projections: Disable debug comments that litter the logs Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=147794875924974 Git commit ff744aca3747e0b36d63b48637bbb542ee5704e3 by Jasem Mutlaq. Committed on 31/10/2016 at 21:19. Pushed by mutlaqja into branch 'master'. Disable debug comments that litter the logs M +9 -2 kstars/projections/projector.cpp http://commits.kde.org/kstars/ff744aca3747e0b36d63b48637bbb542ee5704e3 diff --git a/kstars/projections/projector.cpp b/kstars/projections/projecto= r.cpp index f8e053d..4131e45 100644 --- a/kstars/projections/projector.cpp +++ b/kstars/projections/projector.cpp @@ -463,7 +463,13 @@ Vector2f Projector::toScreenVec(const SkyPoint* o, boo= l oRefract, bool* onVisibl Y =3D 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() << "using AltAz?" << m_vp.useAltAz << " Refract? " << oRe= fract; const SkyObject *obj; @@ -473,8 +479,9 @@ Vector2f Projector::toScreenVec(const SkyPoint* o, bool= oRefract, bool* onVisibl } qDebug() << "dX =3D " << dX << " and isfinite(dX) is" << std::isfi= nite(dX); qDebug() << "Y =3D " << Y << " and isfinite(Y) is" << std::isfinit= e(Y); - return Vector2f(0,0); + //Q_ASSERT( false ); + */ } = dX =3D KSUtils::reduceAngle(dX, -dms::PI, dms::PI);