diff options
| author | Markus Engel <markus.engel@tum.de> | 2014-07-22 19:16:13 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2014-07-22 19:16:13 +0000 |
| commit | b178124078314b78baca08fb65e12cc894242d3a (patch) | |
| tree | 3cc7b29cb5ea6314ff208c3b04c7cf536fbfabd4 /src/ui/tools/pen-tool.cpp | |
| parent | Fixed some unused variables warnings. (diff) | |
| download | inkscape-b178124078314b78baca08fb65e12cc894242d3a.tar.gz inkscape-b178124078314b78baca08fb65e12cc894242d3a.zip | |
Replaced some abs/fabs with std::abs.
(bzr r13459)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp index 70cbcaf0d..649c64034 100644 --- a/src/ui/tools/pen-tool.cpp +++ b/src/ui/tools/pen-tool.cpp @@ -1185,7 +1185,7 @@ void PenTool::_setSubsequentPoint(Geom::Point const p, bool statusbar, guint sta // we are drawing horizontal/vertical lines and hit an anchor; Geom::Point const origin = this->p[0]; // if the previous point and the anchor are not aligned either horizontally or vertically... - if ((abs(p[Geom::X] - origin[Geom::X]) > 1e-9) && (abs(p[Geom::Y] - origin[Geom::Y]) > 1e-9)) { + if ((std::abs(p[Geom::X] - origin[Geom::X]) > 1e-9) && (std::abs(p[Geom::Y] - origin[Geom::Y]) > 1e-9)) { // ...then we should draw an L-shaped path, consisting of two paraxial segments Geom::Point intermed = p; this->_setToNearestHorizVert(intermed, status, false); |
