summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.cpp
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2017-12-01 18:07:34 +0000
committerluzpaz <kunda@scribus.net>2017-12-04 01:55:06 +0000
commiteb07ba085151be60d518ce6310a33e413d699a32 (patch)
tree4530b037a2c813960396a8125561620c0305589f /src/ui/tools/pencil-tool.cpp
parentOptionaly measure only selected elements (diff)
downloadinkscape-eb07ba085151be60d518ce6310a33e413d699a32.tar.gz
inkscape-eb07ba085151be60d518ce6310a33e413d699a32.zip
Misc. typos
Please confirm typos in the following `doc/nr-filter-interface.txt` `share/symbols/BalloonSymbols.svg` .
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
-rw-r--r--src/ui/tools/pencil-tool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp
index 6f64e8e26..fb50898ed 100644
--- a/src/ui/tools/pencil-tool.cpp
+++ b/src/ui/tools/pencil-tool.cpp
@@ -115,7 +115,7 @@ void PencilTool::_endpointSnap(Geom::Point &p, guint const state) {
}
} else {
if (!(state & GDK_SHIFT_MASK)) { //SHIFT disables all snapping, except the angular snapping above
- //After all, the user explicitely asked for angular snapping by
+ //After all, the user explicitly asked for angular snapping by
//pressing CTRL
boost::optional<Geom::Point> origin = this->npoints > 0 ? this->p[0] : boost::optional<Geom::Point>();
spdc_endpoint_snap_free(this, p, origin, state);
@@ -322,7 +322,7 @@ bool PencilTool::_handleMotionNotify(GdkEventMotion const &mevent) {
// Only in freehand mode we have to add the first point also to this->ps (apparently)
// - We cannot add this point in spdc_set_startpoint, because we only need it for freehand
// - We cannot do this in the button press handler because at that point we don't know yet
- // wheter we're going into freehand mode or not
+ // whether we're going into freehand mode or not
this->ps.push_back(this->p[0]);
this->wps.push_back(this->pressure);
}
@@ -769,9 +769,9 @@ PencilTool::addPowerStrokePencil(SPCurve * c)
bool start = true;
auto pressure = this->wps.begin();
for (auto point = this->ps.begin(); point != this->ps.end(); ++point,++pressure) {
- //Maybe the 12 POW can be moved to a preferences 12 give a good results of sensibility on my tablet
+ //Maybe the 12 POW can be moved to a preferences 12 gives a good results of sensibility on my tablet
//But maybe is a tweakable value. less number = less sensibility
- //8 give an aceptable max witht to powerstoke
+ //8 give an acceptable max width to powerstoke
double pressure_base = pow(*pressure, pressure_sensibility);
double pressure_shirnked = (pressure_base * (max - min)) + min;
double pressure_factor = pressure_base/pressure_shirnked;