From b69c1855bb4e9defbf951aaae359a7f6cfa8ea4a Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Mon, 20 May 2019 09:01:56 +0200 Subject: Improve reading of last LPE offset commit --- src/live_effects/lpe-offset.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/live_effects') diff --git a/src/live_effects/lpe-offset.cpp b/src/live_effects/lpe-offset.cpp index da86ce62d..cc03891d1 100644 --- a/src/live_effects/lpe-offset.cpp +++ b/src/live_effects/lpe-offset.cpp @@ -283,13 +283,14 @@ LPEOffset::doEffect_path(Geom::PathVector const & path_in) Geom::OptRect big_gap_bounds = big.boundsFast(); Geom::OptRect small_gap_bounds = small.boundsFast(); Geom::OptRect original_bounds = original.boundsFast(); + bool fix_reverse = ((*original_bounds).width() + (*original_bounds).height()) / 2.0 > std::abs(offset) * 2; if (offset < 0) { - if (((*original_bounds).width() + (*original_bounds).height()) / 2.0 > std::abs(offset) * 2) { + if (fix_reverse) { big_gap_ret.insert(big_gap_ret.end(), big_gap.begin(), big_gap.end()); } } else { if (path_inside) { - if (((*original_bounds).width() + (*original_bounds).height()) / 2.0 > offset * 2) { + if (fix_reverse) { big_gap_ret.insert(big_gap_ret.end(),small_gap.begin(), small_gap.end()); } } else { -- cgit v1.2.3