From 685ca91c9f6142ddee5b5da0c0ab77cf64459c7f Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 23 Oct 2010 22:24:27 +0200 Subject: Don't try displaying markers for completely empty paths, fixes crash. Fixed bugs: - https://launchpad.net/bugs/511577 (bzr r9843) --- src/splivarot.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/splivarot.cpp') diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 2b7da7f8a..e273ca82f 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -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(); -- cgit v1.2.3