Skip to content
Permalink
Browse files

Fix windows build

  • Loading branch information
NathanW2 committed Jun 28, 2016
1 parent 45a4ae2 commit 3d6ea7b489d8b1c5318dcd2e966d60be8cf716e5
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsgeometryutils.cpp
@@ -413,7 +413,7 @@ void TestQgsGeometryUtils::testSqrDistToLine()
p1.x(), p1.y(),
p2.x(), p2.y(),
rx, ry, epsilon );
sqrDist = round( sqrDist * 100 ) / 100;
sqrDist = qRound( sqrDist * 100 ) / 100;
QCOMPARE( sqrDist, 11.83 );
}

3 comments on commit 3d6ea7b

@NathanW2

This comment has been minimized.

Copy link
Member Author

@NathanW2 NathanW2 replied Jun 28, 2016

Seems I broke the build with this. What should we use on windows?

@rouault

This comment has been minimized.

Copy link
Contributor

@rouault rouault replied Jun 28, 2016

qRound() returns a int, so you just have to change / 100 by / 100.0 for example

@NathanW2

This comment has been minimized.

Copy link
Member Author

@NathanW2 NathanW2 replied Jun 28, 2016

Ah right. Thanks not sure how I didn't see that :)

Please sign in to comment.
You can’t perform that action at this time.