corrected angle display

Fri, 20 Dec 2013 18:22:24 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 20 Dec 2013 18:22:24 +0200
changeset 580
341580df1e61
parent 579
4e140de264d2
child 581
c57ddcaf1b58

corrected angle display

src/gldraw.cc file | annotate | diff | comparison | revisions
--- a/src/gldraw.cc	Fri Dec 20 18:04:23 2013 +0200
+++ b/src/gldraw.cc	Fri Dec 20 18:22:24 2013 +0200
@@ -649,7 +649,7 @@
 						if (gl_drawangles)
 						{	QLineF l0 (poly[h], poly[i]),
 								l1 (poly[i], poly[j]);
-							double angle = l0.angleTo (l1);
+							double angle = 180 - l0.angleTo (l1);
 							str label = str::number (angle) + str::fromUtf8 (QByteArray ("\302\260"));
 							QPoint pos = poly[i];
 							pos.setY (pos.y() + metrics.height());

mercurial