Code

FIX 2922232 win32 dialogue for browse file on export-bitmap dialogue, also solved...
[inkscape.git] / src / helper / units.cpp
index 3e632a0caf7530bfc86d857f39b04d7c7b669694..47c4746ac562c8a210d522cf1678d52da8e10be8 100644 (file)
@@ -137,8 +137,8 @@ sp_convert_distance(gdouble *distance, SPUnit const *from, SPUnit const *to)
     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;