Fixed MSVC++ compile error due to sqrt() usage.

This commit is contained in:
Mark Morschhäuser 2014-03-11 16:57:54 +01:00
parent 80da61dcbb
commit 32ad8ed24c
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ void ArrowItem::updatePath(const QPointF &endPoint)
{
const double arrowWidth = 15.0;
const double headWidth = 40.0;
const double headLength = headWidth / sqrt(2);
const double headLength = headWidth / pow(2, 0.5); // aka headWidth / sqrt (2) but this produces a compile error with MSVC++
const double phi = 15;
if (!startItem)