diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-08-16 10:39:30 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-08-16 10:39:30 +0000 |
| commit | d404e05006722ccb3e065266c40ec09d1348b287 (patch) | |
| tree | 1d7c23636d4eb6fa6e8695a11691c46ce00fb5d4 /src/live_effects/lpe-fillet-chamfer.cpp | |
| parent | fix #371 guides label upside down (diff) | |
| download | inkscape-d404e05006722ccb3e065266c40ec09d1348b287.tar.gz inkscape-d404e05006722ccb3e065266c40ec09d1348b287.zip | |
Fix a bug in fillet/chamfer LPE pointed in mailing list by Miguel Lopez. Fillet Chamfer is not applied when reopen the file
Diffstat (limited to 'src/live_effects/lpe-fillet-chamfer.cpp')
| -rw-r--r-- | src/live_effects/lpe-fillet-chamfer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp index e0aada95b..771fdaf73 100644 --- a/src/live_effects/lpe-fillet-chamfer.cpp +++ b/src/live_effects/lpe-fillet-chamfer.cpp @@ -344,7 +344,7 @@ void LPEFilletChamfer::doBeforeEffect(SPLPEItem const *lpeItem) } else { satellites_param.setGlobalKnotHide(false); } - for (size_t i = 0; i < satellites.size(); ++i) { + for (size_t i = 0; i < satellites.size(); ++i) { for (size_t j = 0; j < satellites[i].size(); ++j) { if (j >= pathv[i].size()) { continue; @@ -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 != current_unit && previous_unit != "") { updateAmount(); } previous_unit = current_unit; |
