summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-01-08 00:57:47 +0000
committerJabiertxo Arraiza Cenoz <jtx@jtx.marker.es>2013-01-08 00:57:47 +0000
commiteeb9410c8748a03536119dd01615cda3ca215cb1 (patch)
tree6d959a44f76929ca1419e5d646a58a5bbb1f886f /src/pencil-context.cpp
parentUpdate name (diff)
downloadinkscape-eeb9410c8748a03536119dd01615cda3ca215cb1.tar.gz
inkscape-eeb9410c8748a03536119dd01615cda3ca215cb1.zip
Fix BSplines whit 1 segment
(bzr r11950.1.16)
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 4ddeb6a4f..cce04abb7 100644
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -779,10 +779,12 @@ interpolate(SPPencilContext *pc)
{
/* Fit and draw and reset state */
pc->green_curve->moveto(b[0]);
+ //BSpline
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ guint mode = prefs->getInt("/tools/freehand/pencil/freehand-mode", 0);
+ //BSpline End
for (int c = 0; c < n_segs; c++) {
- //BSpline
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- guint mode = prefs->getInt("/tools/freehand/pencil/freehand-mode", 0);
+ //BSpline
if(mode == 2){
pc->green_curve->lineto(b[4*c+3]);
}else{
@@ -790,6 +792,7 @@ interpolate(SPPencilContext *pc)
}
//BSpline
}
+
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), pc->green_curve);
/* Fit and draw and copy last point */