summaryrefslogtreecommitdiff
path: root/geom_bottleneck/include/basic_defs_bt.h
diff options
context:
space:
mode:
authorArnur Nigmetov <a.nigmetov@gmail.com>2018-06-21 21:43:29 +0200
committerArnur Nigmetov <a.nigmetov@gmail.com>2018-06-21 21:43:29 +0200
commit657f73321f04d5d1c4cec8085ec43a73633b96af (patch)
tree0927165b2ba91a31c4f6d625d2813e1a65e328ae /geom_bottleneck/include/basic_defs_bt.h
parente2a2d6cb2eec5a7153d6e895a28c85c49347f644 (diff)
Bug in longest edge for negative persistence fixed
Diffstat (limited to 'geom_bottleneck/include/basic_defs_bt.h')
-rw-r--r--geom_bottleneck/include/basic_defs_bt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/geom_bottleneck/include/basic_defs_bt.h b/geom_bottleneck/include/basic_defs_bt.h
index 6124dbe..172e0f7 100644
--- a/geom_bottleneck/include/basic_defs_bt.h
+++ b/geom_bottleneck/include/basic_defs_bt.h
@@ -194,7 +194,7 @@ namespace hera {
{
if (isDiagonal())
return 0.0;
- Real pers = (y - x) / 2;
+ Real pers = fabs(y - x) / 2;
if (internal_p == get_infinity()) {
return pers;
} else if (internal_p == 1.0) {