summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-18 00:37:32 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-18 00:37:32 +0000
commitd039289dd0d88a49ee43f1a2c8f012eff360685f (patch)
treea355553ad75bd8749e88f432dbab31ff59b0a439 /src/draw-context.cpp
parentAt the moment mouse click starts waiting for the activated LPE and nothing el... (diff)
downloadinkscape-d039289dd0d88a49ee43f1a2c8f012eff360685f.tar.gz
inkscape-d039289dd0d88a49ee43f1a2c8f012eff360685f.zip
Don't draw anchors in LPEToolContext
(bzr r6655)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp6
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? */