File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ bool QgsMapToolSimplify::calculateSliderBoudaries()
212
212
bottomFound = true ;
213
213
highTol = tol;
214
214
tol = ( highTol + lowTol ) / 2 ;
215
- if ( doubleNear ( highTol, lowTol ) )
215
+ if ( doubleNear ( highTol, lowTol, 0.0001 ) ) // without 0.0001 tolerance sometimes an endless loop in epsg:4326
216
216
{ // solving problem that two points are in same distance from line, so they will be both excluded at same time
217
217
// so some time more than required count of vertices can stay
218
218
found = true ;
@@ -226,7 +226,7 @@ bool QgsMapToolSimplify::calculateSliderBoudaries()
226
226
{
227
227
lowTol = tol;
228
228
tol = ( highTol + lowTol ) / 2 ;
229
- if ( doubleNear ( highTol, lowTol ) )
229
+ if ( doubleNear ( highTol, lowTol, 0.0001 ) ) // without 0.0001 tolerance sometimes an endless loop in epsg:4326
230
230
{ // solving problem that two points are in same distance from line, so they will be both excluded at same time
231
231
// so some time more than required count of vertices can stay
232
232
found = true ;
You can’t perform that action at this time.
0 commit comments