From 824d13e421f0eb4a1478c879ae4701c01632aea4 Mon Sep 17 00:00:00 2001 From: Alexander Trufanov Date: Tue, 9 Jul 2019 20:47:38 +0300 Subject: [PATCH] Fix detection of second chance components --- Despeckle.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Despeckle.cpp b/Despeckle.cpp index 868c9f09..763c76d4 100644 --- a/Despeckle.cpp +++ b/Despeckle.cpp @@ -822,7 +822,10 @@ Despeckle::despeckleInPlace( bool have_anchored_to_small_but_not_big = false; BOOST_FOREACH(Component const& comp, components) { - have_anchored_to_small_but_not_big = comp.anchoredToSmallButNotBig(); + if (comp.anchoredToSmallButNotBig()) { + have_anchored_to_small_but_not_big = true; + break; + } } if (have_anchored_to_small_but_not_big) {