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

List:       kde-commits
Subject:    [kstars] kstars/projections: Disable debug comments that litter the logs
From:       Jasem Mutlaq <mutlaqja () ikarustech ! com>
Date:       2016-10-31 21:19:10
Message-ID: E1c1Jz4-0005o3-12 () code ! kde ! org
[Download RAW message or body]

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/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);
[prev in list] [next in list] [prev in thread] [next in thread] 

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