diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-06-07 12:19:40 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2019-06-17 21:31:11 +0000 |
| commit | 47f95bef1d9fee5d586ab3bb077133bcb9aedbd4 (patch) | |
| tree | 3435fb00aba626119c2e089b7672230aad1b5c58 /src/ui/toolbar | |
| parent | Fix rounding error issues with 'pt' line-height values that prvent using mous... (diff) | |
| download | inkscape-47f95bef1d9fee5d586ab3bb077133bcb9aedbd4.tar.gz inkscape-47f95bef1d9fee5d586ab3bb077133bcb9aedbd4.zip | |
Sync pen toolbar mode change with tool
Reverts a previous fix that did this but caused
https://gitlab.com/inkscape/inkscape/issues/282
where the pen tool's green preview line vanished
when deleting the last node with the pen tool.
Diffstat (limited to 'src/ui/toolbar')
| -rw-r--r-- | src/ui/toolbar/pencil-toolbar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/toolbar/pencil-toolbar.cpp b/src/ui/toolbar/pencil-toolbar.cpp index e781bf3bb..5d7fabe4a 100644 --- a/src/ui/toolbar/pencil-toolbar.cpp +++ b/src/ui/toolbar/pencil-toolbar.cpp @@ -252,6 +252,9 @@ PencilToolbar::mode_changed(int mode) if (_simplify) { _simplify->set_visible(visible); } + if (tools_isactive(_desktop, TOOLS_FREEHAND_PEN)) { + SP_PEN_CONTEXT(_desktop->event_context)->setPolylineMode(); + } } /* This is used in generic functions below to share large portions of code between pen and pencil tool */ |
