summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2010-10-23 20:24:27 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2010-10-23 20:24:27 +0000
commit685ca91c9f6142ddee5b5da0c0ab77cf64459c7f (patch)
tree15a1cfcf621c9601e0eccf78797c256c1715436d /src/splivarot.cpp
parentfix crash bug: PDF export: crash in 'CairoRenderContext::_showGlyphs' (diff)
downloadinkscape-685ca91c9f6142ddee5b5da0c0ab77cf64459c7f.tar.gz
inkscape-685ca91c9f6142ddee5b5da0c0ab77cf64459c7f.zip
Don't try displaying markers for completely empty paths, fixes crash.
Fixed bugs: - https://launchpad.net/bugs/511577 (bzr r9843)
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp8
1 files changed, 8 insertions, 0 deletions
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();