diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-05-01 14:27:28 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-05-01 14:27:28 +0000 |
| commit | 7f81932011c4ad87db74d62a2843949f4a5a3ffe (patch) | |
| tree | 6177fdcf66834758843b4e3211a9f8819508d659 /src/sp-shape.cpp | |
| parent | German translation update (diff) | |
| download | inkscape-7f81932011c4ad87db74d62a2843949f4a5a3ffe.tar.gz inkscape-7f81932011c4ad87db74d62a2843949f4a5a3ffe.zip | |
Fix crashes on empty marker definitions.
Fixed bugs:
- https://launchpad.net/bugs/774834
(bzr r10195)
Diffstat (limited to 'src/sp-shape.cpp')
| -rw-r--r-- | src/sp-shape.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 72559c63f..358e2a595 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -725,12 +725,14 @@ sp_shape_print_invoke_marker_printing(SPObject* obj, Geom::Affine tr, SPStyle* s } SPItem* marker_item = sp_item_first_item_child( marker ); - tr = marker_item->transform * marker->c2p * tr; + if (marker_item) { + tr = marker_item->transform * marker->c2p * tr; - Geom::Affine old_tr = marker_item->transform; - marker_item->transform = tr; - marker_item->invoke_print (ctx); - marker_item->transform = old_tr; + Geom::Affine old_tr = marker_item->transform; + marker_item->transform = tr; + marker_item->invoke_print (ctx); + marker_item->transform = old_tr; + } } /** * Prepares shape for printing. Handles printing of comments for printing |
