diff -r 341580df1e61 -r c57ddcaf1b58 src/gldraw.cc --- a/src/gldraw.cc Fri Dec 20 18:22:24 2013 +0200 +++ b/src/gldraw.cc Sat Dec 21 02:19:32 2013 +0200 @@ -649,10 +649,16 @@ if (gl_drawangles) { QLineF l0 (poly[h], poly[i]), l1 (poly[i], poly[j]); + double angle = 180 - l0.angleTo (l1); + + if (angle < 0) + angle = 180 - l1.angleTo (l0); + str label = str::number (angle) + str::fromUtf8 (QByteArray ("\302\260")); QPoint pos = poly[i]; pos.setY (pos.y() + metrics.height()); + paint.drawText (pos, label); } }