From aafbd92e2dd5d7bdf1de9af2e1f3a6402da9cdea Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Wed, 8 May 2019 13:45:31 +0200 Subject: Fix a crashing bug on Fillet Chamfer LPE --- src/live_effects/lpe-fillet-chamfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp index e0aada95b..379f182fc 100644 --- a/src/live_effects/lpe-fillet-chamfer.cpp +++ b/src/live_effects/lpe-fillet-chamfer.cpp @@ -375,7 +375,7 @@ void LPEFilletChamfer::doBeforeEffect(SPLPEItem const *lpeItem) satellites_param.setPathVectorSatellites(_pathvector_satellites, write); refreshKnots(); Glib::ustring current_unit = Glib::ustring(unit.get_abbreviation()); - if (previous_unit != current_unit) { + if (previous_unit != "" && previous_unit != current_unit) { updateAmount(); } previous_unit = current_unit; -- cgit v1.2.3