Code

Don't try displaying markers for completely empty paths, fixes crash.
[inkscape.git] / src / splivarot.cpp
index 2b7da7f8a881e7ce4170b676ce2c5c76e9c3bf74..e273ca82f196d1e5f4831317fc15425e84cfe5d6 100644 (file)
@@ -674,6 +674,10 @@ Geom::PathVector* item_outline(SPItem const *item)
         return ret_pathv;
     }
 
+    if (curve->get_pathvector().empty()) {
+        return ret_pathv;
+    }
+
     // remember old stroke style, to be set on fill
     SPStyle *i_style = SP_OBJECT_STYLE(item);
 
@@ -900,6 +904,10 @@ sp_selected_path_outline(SPDesktop *desktop)
                 continue;
         }
 
+        if (curve->get_pathvector().empty()) {
+            continue;
+        }
+
         // pas de stroke pas de chocolat
         if (!SP_OBJECT_STYLE(item) || SP_OBJECT_STYLE(item)->stroke.noneSet) {
             curve->unref();