[qet] [814] Correction dans la fonction QET::correctAngle

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 814
Author:   xavier
Date:     2009-12-13 22:48:38 +0100 (Sun, 13 Dec 2009)
Log Message:
-----------
Correction dans la fonction QET::correctAngle

Modified Paths:
--------------
    branches/0.3/sources/qet.cpp

Modified: branches/0.3/sources/qet.cpp
===================================================================
--- branches/0.3/sources/qet.cpp	2009-12-13 16:43:35 UTC (rev 813)
+++ branches/0.3/sources/qet.cpp	2009-12-13 21:48:38 UTC (rev 814)
@@ -442,7 +442,7 @@
 qreal QET::correctAngle(const qreal &angle) {
 	// ramene l'angle demande entre -360.0 et +360.0 degres
 	qreal corrected_angle = angle;
-	while (corrected_angle < 360.0) corrected_angle += 360.0;
-	while (corrected_angle > 360.0) corrected_angle -= 360.0;
+	while (corrected_angle <= -360.0) corrected_angle += 360.0;
+	while (corrected_angle >=  360.0) corrected_angle -= 360.0;
 	return(corrected_angle);
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/