diff --git a/src/helper/units.cpp b/src/helper/units.cpp
index 3e632a0caf7530bfc86d857f39b04d7c7b669694..47c4746ac562c8a210d522cf1678d52da8e10be8 100644 (file)
--- a/src/helper/units.cpp
+++ b/src/helper/units.cpp
if ((from->base == SP_UNIT_VOLATILE) || (to->base == SP_UNIT_VOLATILE)) return FALSE;
if ((from->base == to->base)
- || (from->base == SP_UNIT_DEVICE) && (to->base == SP_UNIT_ABSOLUTE)
- || (from->base == SP_UNIT_ABSOLUTE) && (to->base == SP_UNIT_DEVICE))
+ || ((from->base == SP_UNIT_DEVICE) && (to->base == SP_UNIT_ABSOLUTE))
+ || ((from->base == SP_UNIT_ABSOLUTE) && (to->base == SP_UNIT_DEVICE)))
{
*distance = *distance * from->unittobase / to->unittobase;
return TRUE;