From 855fb4f5312366ba213cc84356b8b9faa7c84686 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 14 Jul 2008 19:33:19 +0000 Subject: [PATCH] convert object to path: replace check for empty path with 2geomified method of spcurve --- src/path-chemistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2