Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KStars
Commits
ff744aca
Commit
ff744aca
authored
Nov 01, 2016
by
Jasem Mutlaq
Browse files
Disable debug comments that litter the logs
parent
8450f009
Changes
1
Hide whitespace changes
Inline
Side-by-side
kstars/projections/projector.cpp
View file @
ff744aca
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment