Write warnings to log file.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-03-05 18:31:16 +02:00
parent 2e6be9119c
commit 2b3c13eb1d

View File

@ -59,7 +59,7 @@ public:
{ {
if (not qFuzzyCompare(qAbs(angle1-angle2), 180) || qFuzzyIsNull(qAbs(angle1-angle2))) if (not qFuzzyCompare(qAbs(angle1-angle2), 180) || qFuzzyIsNull(qAbs(angle1-angle2)))
{ {
qWarning()<<"angle1 and angle2 are not equal."; qDebug()<<"angle1 and angle2 are not equal.";
this->angle1 = angle1; this->angle1 = angle1;
this->angle2 = angle1 + 180; this->angle2 = angle1 + 180;
} }
@ -129,7 +129,7 @@ public:
{ {
if (not qFuzzyCompare(qAbs(angle1-angle2), 180) || qFuzzyIsNull(qAbs(angle1-angle2))) if (not qFuzzyCompare(qAbs(angle1-angle2), 180) || qFuzzyIsNull(qAbs(angle1-angle2)))
{ {
qWarning()<<"angle1 and angle2 are not equal."; qDebug()<<"angle1 and angle2 are not equal.";
this->angle2 = angle1 + 180; this->angle2 = angle1 + 180;
this->angle2F = QString().number(angle2); this->angle2F = QString().number(angle2);
} }