From ff29a1a744eb99529d240534b401f35b0a740a13 Mon Sep 17 00:00:00 2001 From: Andrew Davie Date: Sat, 2 Apr 2016 20:30:59 +1100 Subject: [PATCH] Optimisation. Line culler slightly quicker. --- .../net/osmand/plus/views/AsynchronousResampler.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/AsynchronousResampler.java b/OsmAnd/src/net/osmand/plus/views/AsynchronousResampler.java index 4fe45c7b50..d7066fa00b 100644 --- a/OsmAnd/src/net/osmand/plus/views/AsynchronousResampler.java +++ b/OsmAnd/src/net/osmand/plus/views/AsynchronousResampler.java @@ -209,17 +209,19 @@ public abstract class AsynchronousResampler extends AsyncTask dmax) { dmax = d; index = i; } } - if (dmax >= epsilon) { + if (dmax > epsilon) { cullRamerDouglasPeucer(survivor, start, index); cullRamerDouglasPeucer(survivor, index, end); } else {