summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-31 21:19:01 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-31 21:19:01 (GMT)
commitff744aca3747e0b36d63b48637bbb542ee5704e3 (patch)
tree0b0640ae646086606179c617474b8c998e6bd83f
parent8450f009c2976ca7df915414855cd74eec172bb6 (diff)
Disable debug comments that litter the logs
-rw-r--r--kstars/projections/projector.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/kstars/projections/projector.cpp b/kstars/projections/projector.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, bool oRefract, bool* onVisibl
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() << "using AltAz?" << m_vp.useAltAz << " Refract? " << oRefract;
const SkyObject *obj;
@@ -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() << "Y = " << Y << " and isfinite(Y) is" << std::isfinite(Y);
- return Vector2f(0,0);
+
//Q_ASSERT( false );
+ */
}
dX = KSUtils::reduceAngle(dX, -dms::PI, dms::PI);