]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_utils.C
Fix spacing of greek letters; other things.
[features.git] / src / mathed / math_utils.C
index 90fb3bc5c3beab99ba19f8c024c4ed9c2869fee1..a5fb789cce7f7202f07fd89f1902c8c081535208 100644 (file)
@@ -86,11 +86,11 @@ int MathedLookupBOP(short id)
                issorted = true;
        }
        
-       int result = 0;
        binary_op_pair * res = lower_bound(binary_op_table,
                                           binary_op_table + bopCount,
                                           id, compara());
-       if (res != (binary_op_table + bopCount))
-               result = res->isrel;
-       return result;
+       if (res->id == id)
+               return res->isrel;
+       else
+               return LMB_NONE;
 }