diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2014-07-27 11:44:25 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2014-07-27 11:44:25 +0000 |
| commit | 3ebd8c4550a8c8bf944e18fec8f3df3d2da5c1af (patch) | |
| tree | 981526f208f9998ea858cfd55a2c946f72dcb02e /src/ui/tools/pen-tool.cpp | |
| parent | update to trunk (r13454) (diff) | |
| parent | Properly fix 1309050, revert incorrect fix for 601336 (diff) | |
| download | inkscape-3ebd8c4550a8c8bf944e18fec8f3df3d2da5c1af.tar.gz inkscape-3ebd8c4550a8c8bf944e18fec8f3df3d2da5c1af.zip | |
update to trunk (r13472)
(bzr r13398.1.5)
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); |
