summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b7d76f)
raw | patch | inline | side by side (parent: 9b7d76f)
author | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 19 Aug 2008 13:36:55 +0000 (13:36 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 19 Aug 2008 13:36:55 +0000 (13:36 +0000) |
src/draw-context.cpp | patch | blob | history |
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index 6e641196b9f6e49da3027bc4567496ca16403964..7b40e7c95abf6b837e83edca53f72f0b97cbf066 100644 (file)
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
if (!dc->white_item) {
/* Attach repr */
SPItem *item = SP_ITEM(desktop->currentLayer()->appendChildRepr(repr));
+
+ // we finished the path; now apply any waiting LPEs or freehand shapes
+ spdc_check_for_and_apply_waiting_LPE(dc, item);
+
dc->selection->set(repr);
Inkscape::GC::release(repr);
item->transform = i2i_affine(desktop->currentRoot(), desktop->currentLayer());
item->updateRepr();
}
-
- // we finished the path; now apply any waiting LPEs or freehand shapes
- spdc_check_for_and_apply_waiting_LPE(dc, dc->selection->singleItem());
-
sp_document_done(doc, SP_IS_PEN_CONTEXT(dc)? SP_VERB_CONTEXT_PEN : SP_VERB_CONTEXT_PENCIL,
_("Draw path"));