diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2010-10-23 20:24:27 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2010-10-23 20:24:27 +0000 |
| commit | 685ca91c9f6142ddee5b5da0c0ab77cf64459c7f (patch) | |
| tree | 15a1cfcf621c9601e0eccf78797c256c1715436d /src/splivarot.cpp | |
| parent | fix crash bug: PDF export: crash in 'CairoRenderContext::_showGlyphs' (diff) | |
| download | inkscape-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.cpp | 8 |
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(); |
