summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-03-02 03:40:58 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-05-13 22:43:53 +0000
commit4c82216535f138fb917b8258cebb799054e64cce (patch)
tree75fe1e35cf9a9c98b6ba3599190c75983249283b /src/ui/tools/pencil-tool.cpp
parentpackaging/macos: typos fixed (diff)
downloadinkscape-4c82216535f138fb917b8258cebb799054e64cce.tar.gz
inkscape-4c82216535f138fb917b8258cebb799054e64cce.zip
Regression fix: hide some toolbar icons on startup
Pencil toolbar also given some checks for gitlab.com/inkscape/inkscape/issues/92 Fixes gitlab.com/inkscape/inbox/issues/182
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
-rw-r--r--src/ui/tools/pencil-tool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp
index 8e1966f4c..cbcba16b5 100644
--- a/src/ui/tools/pencil-tool.cpp
+++ b/src/ui/tools/pencil-tool.cpp
@@ -202,7 +202,8 @@ bool PencilTool::_handleButtonPress(GdkEventButton const &bevent) {
pencil_drag_origin_w = Geom::Point(bevent.x,bevent.y);
pencil_within_tolerance = true;
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- tablet_enabled = prefs->getBool("/tools/freehand/pencil/pressure", false);
+ tablet_enabled = prefs->getBool("/tools/freehand/pencil/pressure", false) ||
+ prefs->getInt("/tools/freehand/pencil/freehand-mode", 0) == 3;
switch (this->_state) {
case SP_PENCIL_CONTEXT_ADDLINE:
/* Current segment will be finished with release */