diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-07-11 16:03:40 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-07-14 18:29:22 +0000 |
| commit | 9d83d77b253fdcce2b3614e3ee21a74a94d4663d (patch) | |
| tree | c999d2ef3fb8582d2d04dcf8854c12db7d889b22 /src/ui/tools/freehand-base.cpp | |
| parent | working on redraw (diff) | |
| download | inkscape-9d83d77b253fdcce2b3614e3ee21a74a94d4663d.tar.gz inkscape-9d83d77b253fdcce2b3614e3ee21a74a94d4663d.zip | |
Pre-Threading comment
Diffstat (limited to 'src/ui/tools/freehand-base.cpp')
| -rw-r--r-- | src/ui/tools/freehand-base.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp index c6f99db92..0c82b4dec 100644 --- a/src/ui/tools/freehand-base.cpp +++ b/src/ui/tools/freehand-base.cpp @@ -243,7 +243,7 @@ static void spdc_apply_powerstroke_shape(std::vector<Geom::Point> points, Freeha item->transform = transform_coordinate; SPShape *sp_shape = dynamic_cast<SPShape *>(item); if (sp_shape) { - SPCurve * c = sp_shape->getCurve(); + SPCurve *c = sp_shape->getCurve(); if (!c) { return; } @@ -285,8 +285,12 @@ static void spdc_apply_powerstroke_shape(std::vector<Geom::Point> points, Freeha Geom::Path path = c->get_pathvector()[0]; if (!path.empty()) { pt->powerStrokeInterpolate(path); - } + } + bool transform_stroke = prefs->getBool("/options/transform/stroke", true); + prefs->setBool("/options/transform/stroke", true); ps->offset_points.param_set_and_write_new_value(pt->points); + ps->offset_points.param_transform_multiply(transform_coordinate.inverse(), false); + prefs->setBool("/options/transform/stroke", transform_stroke); } prefs->setBool(pref_path_pp, false); return; |
