Skip to content

Commit 3d6ea7b

Browse files
committedJun 28, 2016
Fix windows build
1 parent 45a4ae2 commit 3d6ea7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/src/core/testqgsgeometryutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ void TestQgsGeometryUtils::testSqrDistToLine()
413413
p1.x(), p1.y(),
414414
p2.x(), p2.y(),
415415
rx, ry, epsilon );
416-
sqrDist = round( sqrDist * 100 ) / 100;
416+
sqrDist = qRound( sqrDist * 100 ) / 100;
417417
QCOMPARE( sqrDist, 11.83 );
418418
}
419419

3 commit comments

Comments
 (3)

NathanW2 commented on Jun 28, 2016

@NathanW2
MemberAuthor

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

rouault commented on Jun 28, 2016

@rouault
Contributor

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

NathanW2 commented on Jun 28, 2016

@NathanW2
MemberAuthor

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

Please sign in to comment.