diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:47:52 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:47:52 +0000 |
| commit | d6965679116721ace724dc84bfde63ae16c7171a (patch) | |
| tree | 4dd1434192c9b3b2772cf4c5cedb16d388d5d498 /src/pen-context.cpp | |
| parent | noop: reorder options for lpe-line-segment (diff) | |
| download | inkscape-d6965679116721ace724dc84bfde63ae16c7171a.tar.gz inkscape-d6965679116721ace724dc84bfde63ae16c7171a.zip | |
Add function to cancel wait-for-LPE mode in pen context
(bzr r6687)
Diffstat (limited to 'src/pen-context.cpp')
| -rw-r--r-- | src/pen-context.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp index b575e94f3..b7182ac51 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -1396,6 +1396,17 @@ sp_pen_context_wait_for_LPE_mouse_clicks(SPPenContext *pc, Inkscape::LivePathEff pc->polylines_paraxial = false; // TODO: think if this is correct for all cases } +void +sp_pen_context_cancel_waiting_for_LPE(SPPenContext *pc) +{ + g_print ("Cancelled waiting for mouse clicks for %s\n", + Inkscape::LivePathEffect::LPETypeConverter.get_label(pc->waiting_LPE_type).c_str()); + + pc->waiting_LPE_type = Inkscape::LivePathEffect::INVALID_LPE; + pc->expecting_clicks_for_LPE = 0; + sp_pen_context_set_polyline_mode(pc); +} + static int pen_next_paraxial_direction(const SPPenContext *const pc, NR::Point const &pt, NR::Point const &origin, guint state) { /* |
