diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-06-19 01:30:10 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-06-19 01:30:10 +0000 |
| commit | 417ba16c9f42a5476045ca4f1825fff2fed518ba (patch) | |
| tree | 3d3c9620ebb4b6dc6998550b353cf1825cf2f973 /src/helper/geom-pathvectorsatellites.cpp | |
| parent | Fixes when moves a path (diff) | |
| download | inkscape-417ba16c9f42a5476045ca4f1825fff2fed518ba.tar.gz inkscape-417ba16c9f42a5476045ca4f1825fff2fed518ba.zip | |
Organize doeffect function
(bzr r13645.1.164)
Diffstat (limited to 'src/helper/geom-pathvectorsatellites.cpp')
| -rw-r--r-- | src/helper/geom-pathvectorsatellites.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helper/geom-pathvectorsatellites.cpp b/src/helper/geom-pathvectorsatellites.cpp index f72841b30..eca866978 100644 --- a/src/helper/geom-pathvectorsatellites.cpp +++ b/src/helper/geom-pathvectorsatellites.cpp @@ -65,7 +65,7 @@ void PathVectorSatellites::setSelected(std::vector<size_t> selected) size_t counter = 0; for (size_t i = 0; i < _satellites.size(); ++i) { for (size_t j = 0; j < _satellites[i].size(); ++j) { - if(find (selected.begin(), selected.end(), counter) != selected.end()){ + if (find (selected.begin(), selected.end(), counter) != selected.end()) { _satellites[i][j].setSelected(true); } else { _satellites[i][j].setSelected(false); @@ -107,9 +107,9 @@ void PathVectorSatellites::updateAmount(double radius, bool apply_no_radius, boo for (size_t i = 0; i < _satellites.size(); ++i) { for (size_t j = 0; j < _satellites[i].size(); ++j) { boost::optional<size_t> previous_index = boost::none; - if(j == 0 && _pathvector[i].closed()){ + if (j == 0 && _pathvector[i].closed()) { previous_index = _pathvector[i].size() - 1; - } else if(!_pathvector[i].closed() || j != 0) { + } else if (!_pathvector[i].closed() || j != 0) { previous_index = j - 1; } if (!_pathvector[i].closed() && j == 0) { @@ -128,7 +128,7 @@ void PathVectorSatellites::updateAmount(double radius, bool apply_no_radius, boo Geom::Point satellite_point = _pathvector[i].pointAt(j); if (_satellites[i][j].selected || !only_selected) { if (!use_knot_distance && !flexible) { - if(previous_index) { + if (previous_index) { _satellites[i][j].amount = _satellites[i][j].radToLen(power, _pathvector[i][*previous_index], _pathvector[i][j]); } else { _satellites[i][j].amount = 0.0; |
