@@ -106,7 +106,7 @@ void TestQgsMeasureTool::testLengthCalculation()
106106 tool->addPoint ( QgsPoint ( 2484588 , 2425722 ) );
107107 tool->addPoint ( QgsPoint ( 2482767 , 2398853 ) );
108108 // force dialog recalculation
109- dlg->addPoint ( QgsPoint ( 0 , 0 ) );
109+ dlg->addPoint ();
110110
111111 // check result
112112 QString measureString = dlg->editTotal ->text ();
@@ -123,7 +123,7 @@ void TestQgsMeasureTool::testLengthCalculation()
123123 tool2->addPoint ( QgsPoint ( 2484588 , 2425722 ) );
124124 tool2->addPoint ( QgsPoint ( 2482767 , 2398853 ) );
125125 // force dialog recalculation
126- dlg2->addPoint ( QgsPoint ( 0 , 0 ) );
126+ dlg2->addPoint ();
127127
128128 // check result
129129 measureString = dlg2->editTotal ->text ();
@@ -175,7 +175,7 @@ void TestQgsMeasureTool::testAreaCalculation()
175175 tool->addPoint ( QgsPoint ( 2520109 , 2397715 ) );
176176 tool->addPoint ( QgsPoint ( 2520792 , 2425494 ) );
177177 // force dialog recalculation
178- dlg->addPoint ( QgsPoint ( 0 , 0 ) );
178+ dlg->addPoint ();
179179
180180 // check result
181181 QString measureString = dlg->editTotal ->text ();
@@ -194,7 +194,7 @@ void TestQgsMeasureTool::testAreaCalculation()
194194 tool2->addPoint ( QgsPoint ( 2520109 , 2397715 ) );
195195 tool2->addPoint ( QgsPoint ( 2520792 , 2425494 ) );
196196 // force dialog recalculation
197- dlg2->addPoint ( QgsPoint ( 0 , 0 ) );
197+ dlg2->addPoint ();
198198
199199 // check result
200200 measureString = dlg2->editTotal ->text ();
0 commit comments