summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 5bc369099..e6bd8f297 100644
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -847,8 +847,8 @@ sketch_interpolate(SPPencilContext *pc)
}
Geom::Piecewise<Geom::D2<Geom::SBasis> > fit_pwd2 = fit.toPwSb();
- double t =0.;
if ( pc->sketch_n > 0 ) {
+ double t =0.;
if (average_all_sketches) {
// Average = (sum of all) / n
// = (sum of all + new one) / n+1