diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-06 13:23:09 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-06 13:23:09 +0000 |
| commit | a23bf5056381d396841b85c1c8da411e2d14bd45 (patch) | |
| tree | 2533a8dbf3f53df444ef22b6872a6a8f8b867f52 /src/draw-context.cpp | |
| parent | Esc and Ctrl+Z in pencil tool should also cancel when we're drawing straight ... (diff) | |
| download | inkscape-a23bf5056381d396841b85c1c8da411e2d14bd45.tar.gz inkscape-a23bf5056381d396841b85c1c8da411e2d14bd45.zip | |
New mode in pen tool to draw paraxial lines
(bzr r6575)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 2d0267757..b1e97e44b 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -367,7 +367,7 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) dc->waiting_LPE_type = INVALID_LPE; } if (SP_IS_PEN_CONTEXT(dc)) { - SP_PEN_CONTEXT(dc)->polylines_only = (prefs_get_int_attribute("tools.freehand.pen", "freehand-mode", 0) == 2); + sp_pen_context_set_polyline_mode(SP_PEN_CONTEXT(dc)); } } } @@ -442,7 +442,7 @@ spdc_attach_selection(SPDrawContext *dc, Inkscape::Selection */*sel*/) * \param state keyboard state to check if ctrl was pressed */ -void spdc_endpoint_snap_rotation(SPEventContext const *const ec, NR::Point &p, NR::Point const o, +void spdc_endpoint_snap_rotation(SPEventContext const *const ec, NR::Point &p, NR::Point const &o, guint state) { unsigned const snaps = abs(prefs_get_int_attribute("options.rotationsnapsperpi", "value", 12)); |
