diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-19 13:36:55 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-19 13:36:55 +0000 |
| commit | 2e4b205cc3ba213b423b3127b4162b50bb424ff6 (patch) | |
| tree | 9205d14bfc2bbea6daa783c2dafeade96590d6c0 /src/draw-context.cpp | |
| parent | Add convenience button to open LPE dialog (e.g., to adapt construction parame... (diff) | |
| download | inkscape-2e4b205cc3ba213b423b3127b4162b50bb424ff6.tar.gz inkscape-2e4b205cc3ba213b423b3127b4162b50bb424ff6.zip | |
Apply instant-LPEs _before_ adding new items to selection (so that they can be taken into account on new items)
(bzr r6701)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 6e641196b..7b40e7c95 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -680,16 +680,16 @@ spdc_flush_white(SPDrawContext *dc, SPCurve *gc) 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")); |
