summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkbltGrElemLine.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkbltGrElemLine.C b/generic/tkbltGrElemLine.C
index ac2b340..7b0d2d4 100644
--- a/generic/tkbltGrElemLine.C
+++ b/generic/tkbltGrElemLine.C
@@ -1898,8 +1898,8 @@ void LineElement::closestPoint(ClosestSearch *searchPtr)
int count =0;
for (Point2d *pp = symbolPts_.points; count < symbolPts_.length;
count++, pp++) {
- double dx = (double)(searchPtr->x - pp->x);
- double dy = (double)(searchPtr->y - pp->y);
+ double dx = (double)abs(searchPtr->x - pp->x);
+ double dy = (double)abs(searchPtr->y - pp->y);
double d;
if (searchPtr->along == SEARCH_BOTH)
d = hypot(dx, dy);