diff --git a/owlps-positioner/src/posutil.hh b/owlps-positioner/src/posutil.hh index 26c7a62..f4554f7 100644 --- a/owlps-positioner/src/posutil.hh +++ b/owlps-positioner/src/posutil.hh @@ -74,6 +74,9 @@ public: inline bool PosUtil:: is_in_interval(float center, float bound, float value) { + if (bound == 0) + return value == center ; + assert(bound > 0) ; float interval_min = center - bound ; float interval_max = center + bound ;