From 6b109d09982e09940dc8e777430a04410d7b6550 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Wed, 24 Oct 2018 09:21:15 +0200 Subject: Fix crash when calling QGeoPath::length on empty QGeoPath instance Fixes: QTBUG-71355 Change-Id: I47b058891a47cd6d020c4e192d40233c57814313 Reviewed-by: Timur Pocheptsov Reviewed-by: Paolo Angelelli --- tests/auto/qgeopath/tst_qgeopath.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auto/qgeopath/tst_qgeopath.cpp b/tests/auto/qgeopath/tst_qgeopath.cpp index 86ff137d..5781e504 100644 --- a/tests/auto/qgeopath/tst_qgeopath.cpp +++ b/tests/auto/qgeopath/tst_qgeopath.cpp @@ -70,6 +70,7 @@ void tst_QGeoPath::defaultConstructor() QGeoPath p; QVERIFY(!p.path().size()); QCOMPARE(p.width(), qreal(0.0)); + QCOMPARE(p.length(), double(0.0)); } void tst_QGeoPath::listConstructor() -- cgit v1.2.1