diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2009-01-27 16:55:52 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2009-01-27 16:55:52 +0000 |
| commit | f399426288c679b813e3b97da2d29e29da2f39fe (patch) | |
| tree | c654507ad729d4dc76552c6c3cb3d154b599904b /src | |
| parent | quick ad-hoc fix to restore guide dragging (diff) | |
| download | inkscape-f399426288c679b813e3b97da2d29e29da2f39fe.tar.gz inkscape-f399426288c679b813e3b97da2d29e29da2f39fe.zip | |
fix crash when drawing very quickly while still loading inkscape.
(bzr r7190)
Diffstat (limited to 'src')
| -rw-r--r-- | src/pencil-context.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index a8c3112ac..a29e13e22 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -710,9 +710,8 @@ square(double const x) static void interpolate(SPPencilContext *pc) { - if ( pc->ps.size() <= 1 ) { - return; + return; } Inkscape::Preferences *prefs = Inkscape::Preferences::get(); @@ -775,7 +774,9 @@ interpolate(SPPencilContext *pc) 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; |
