diff options
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 9717c0aa1..c8ce44872 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -439,9 +439,11 @@ spdc_attach_selection(SPDrawContext *dc, Inkscape::Selection */*sel*/) if ( !c->is_closed() ) { SPDrawAnchor *a; a = sp_draw_anchor_new(dc, c, TRUE, *(c->first_point())); - dc->white_anchors = g_slist_prepend(dc->white_anchors, a); + if (a) + dc->white_anchors = g_slist_prepend(dc->white_anchors, a); a = sp_draw_anchor_new(dc, c, FALSE, *(c->last_point())); - dc->white_anchors = g_slist_prepend(dc->white_anchors, a); + if (a) + dc->white_anchors = g_slist_prepend(dc->white_anchors, a); } } /* fixme: recalculate active anchor? */ |
