summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-12-30 19:41:32 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-12-30 19:41:32 +0000
commit4c6918c72721a35e0347e9e087396238e72eb62e (patch)
tree22d7e8b0c0ecff9d8c6ff73ab0311a2fa9873ae7 /src/ui/tools/pencil-tool.cpp
parentRefactorizing (diff)
downloadinkscape-4c6918c72721a35e0347e9e087396238e72eb62e.tar.gz
inkscape-4c6918c72721a35e0347e9e087396238e72eb62e.zip
Refactorizing
(bzr r11950.1.212)
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
-rw-r--r--src/ui/tools/pencil-tool.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp
index c10bd15a3..2027f0981 100644
--- a/src/ui/tools/pencil-tool.cpp
+++ b/src/ui/tools/pencil-tool.cpp
@@ -692,10 +692,8 @@ interpolate(PencilTool *pc)
return;
}
- //BSpline
using Geom::X;
using Geom::Y;
- //BSpline end
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
double const tol = prefs->getDoubleLimited("/tools/freehand/pencil/tolerance", 10.0, 1.0, 100.0) * 0.4;
@@ -727,12 +725,9 @@ interpolate(PencilTool *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
//Si el modo es BSpline modificamos para que el trazado cree los nodos adhoc
if(mode == 2){
Geom::Point BP = b[4*c+0] + (1./3)*(b[4*c+3] - b[4*c+0]);
@@ -743,7 +738,6 @@ interpolate(PencilTool *pc)
}else{
pc->green_curve->curveto(b[4*c+1], b[4*c+2], b[4*c+3]);
}
- //BSpline
}
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), pc->green_curve);
@@ -884,7 +878,6 @@ fit_and_split(PencilTool *pc)
/* Fit and draw and reset state */
pc->red_curve->reset();
pc->red_curve->moveto(b[0]);
- //BSpline
using Geom::X;
using Geom::Y;
//Si el modo es BSpline modificamos para que el trazado cree los nodos adhoc
@@ -899,7 +892,6 @@ fit_and_split(PencilTool *pc)
}else{
pc->red_curve->curveto(b[1], b[2], b[3]);
}
- //BSpline End
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), pc->red_curve);
pc->red_curve_is_valid = true;
} else {