diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-06-23 03:05:24 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-06-24 02:14:50 +0000 |
| commit | 5b77be6011da0f39fd0e9de89ab25c20012719cc (patch) | |
| tree | db482cdecaa00811d40ffb2b0a72901de8f39667 /src/ui/tools/pen-tool.cpp | |
| parent | Pen tool live update of green BPaths on Alt+Move (diff) | |
| download | inkscape-5b77be6011da0f39fd0e9de89ab25c20012719cc.tar.gz inkscape-5b77be6011da0f39fd0e9de89ab25c20012719cc.zip | |
Minor clean up of pen tool code
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp index 819ccf882..7708cd86b 100644 --- a/src/ui/tools/pen-tool.cpp +++ b/src/ui/tools/pen-tool.cpp @@ -159,16 +159,6 @@ void PenTool::setPolylineMode() { // change the nodes to make space for bspline mode this->polylines_only = (mode == 3 || mode == 4); this->polylines_paraxial = (mode == 4); - //we call the function which defines the Spiro modes and the BSpline - //todo: merge to one function only - this->_penContextSetMode(mode); -} - -/* -*.Set the mode of draw spiro, and bsplines -*/ -void PenTool::_penContextSetMode(guint mode) { - // define the nodes this->spiro = (mode == 1); this->bspline = (mode == 2); this->_bsplineSpiroColor(); @@ -1307,8 +1297,8 @@ void PenTool::_bsplineSpiroColor() { static Inkscape::Preferences *prefs = Inkscape::Preferences::get(); if(this->spiro){ - this->red_color = 0xff00000; - this->green_color = 0x00ff000; + this->red_color = 0xff000000; + this->green_color = 0x00ff0000; }else if(this->bspline){ this->highlight_color = SP_ITEM(this->desktop->currentLayer())->highlight_color(); if((unsigned int)prefs->getInt("/tools/nodes/highlight_color", 0xff0000ff) == this->highlight_color){ |
