summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfbccf9)
raw | patch | inline | side by side (parent: bfbccf9)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 27 Jan 2009 16:55:52 +0000 (16:55 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 27 Jan 2009 16:55:52 +0000 (16:55 +0000) |
src/pencil-context.cpp | patch | blob | history |
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index a8c3112acd0617ce65e091d5c2d5bdf29f5bb088..a29e13e22d5ac94a5f3f3350644d37a8c8e497e7 100644 (file)
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
static void
interpolate(SPPencilContext *pc)
{
-
if ( pc->ps.size() <= 1 ) {
- return;
+ return;
}
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
static void
sketch_interpolate(SPPencilContext *pc)
{
- g_assert( pc->ps.size() > 1 );
+ if ( pc->ps.size() <= 1 ) {
+ return;
+ }
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
double const tol = prefs->getDoubleLimited("/tools/freehand/pencil/tolerance", 10.0, 1.0, 100.0) * 0.4;