Commit 9333ff7d09666844702ae563a65ff37fea5769d4

Authored by Thiago Franco de Moraes
1 parent de653d32

There was an error in the bool diff operation

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -1250,7 +1250,7 @@ class Slice(object):
1250 1250 m[:] = ((m1 > 2) + (m2 > 2)) * 255
1251 1251  
1252 1252 elif op == const.BOOLEAN_DIFF:
1253   - m[:] = ((m1 > 2) - (m2 > 2)) * 255
  1253 + m[:] = ((m1 > 2) - ((m1 > 2) & (m2 > 2))) * 255
1254 1254  
1255 1255 elif op == const.BOOLEAN_AND:
1256 1256 m[:] = ((m1 > 2) & (m2 > 2)) * 255
... ...