summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-14 19:33:19 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-14 19:33:19 +0000
commit05a3fe14adca9312d04e18a47e4f27bb1777d9af (patch)
tree788ce90b824f376cc8da0a48ffa736f2158a597e /src/path-chemistry.cpp
parentdyna-draw-context and eraser-context: replace check for empty path with 2geom... (diff)
downloadinkscape-05a3fe14adca9312d04e18a47e4f27bb1777d9af.tar.gz
inkscape-05a3fe14adca9312d04e18a47e4f27bb1777d9af.zip
convert object to path: replace check for empty path with 2geomified method of spcurve
(bzr r6302)
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index a796ae340..29c977e5d 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -435,7 +435,7 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/)
// Prevent empty paths from being added to the document
// otherwise we end up with zomby markup in the SVG file
- if(curve->get_length() <= 0)
+ if(curve->is_empty())
{
curve->unref();
return NULL;