From b0be67553a598cf5f20a3c8adc4d5d1b6ece0986 Mon Sep 17 00:00:00 2001 From: Nikos Koukis Date: Thu, 16 May 2019 16:06:35 +0100 Subject: [PATCH] Fix bug with misleading indentation --- .../include/gmapping/particlefilter/particlefilter.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openslam_gmapping/include/gmapping/particlefilter/particlefilter.h b/openslam_gmapping/include/gmapping/particlefilter/particlefilter.h index 2a8b8a9..39db224 100644 --- a/openslam_gmapping/include/gmapping/particlefilter/particlefilter.h +++ b/openslam_gmapping/include/gmapping/particlefilter/particlefilter.h @@ -137,9 +137,12 @@ void rle(OutputIterator& out, const Iterator & begin, const Iterator & end){ count=1; } } + if (count>0) + { *out=std::make_pair(current,count); out++; + } } //BEGIN legacy