summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-06-23 02:51:35 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-06-24 02:14:50 +0000
commit4ce689b25c14ad64cfe4ef5932cae00ed7d1a006 (patch)
treec727463617d15a491e6a0db0ea521d39974755e9 /src/ui/tools/pen-tool.cpp
parentMinor clean up of pen tool code (diff)
downloadinkscape-4ce689b25c14ad64cfe4ef5932cae00ed7d1a006.tar.gz
inkscape-4ce689b25c14ad64cfe4ef5932cae00ed7d1a006.zip
Update pen tool path instantly on mode change
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
-rw-r--r--src/ui/tools/pen-tool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp
index 7708cd86b..9bcef5fc8 100644
--- a/src/ui/tools/pen-tool.cpp
+++ b/src/ui/tools/pen-tool.cpp
@@ -162,6 +162,8 @@ void PenTool::setPolylineMode() {
this->spiro = (mode == 1);
this->bspline = (mode == 2);
this->_bsplineSpiroColor();
+ if (!this->green_bpaths.empty())
+ this->_redrawAll();
}
/**