Permalink
Browse files

Fix label removing logic in on_close

  • Loading branch information...
1 parent ae64b23 commit e1be53a71d5338eb145a36e41ab638b7c50074bc @LeeKamentsky LeeKamentsky committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cellprofiler/modules/editobjectsmanually.py
View
2 cellprofiler/modules/editobjectsmanually.py
@@ -879,7 +879,7 @@ def on_close(self, event):
open_labels = set([d[self.K_LABEL] for d in self.artists.values()])
for l in open_labels:
self.close_label(l, False)
- for idx in np.where(~self.to_keep):
+ for idx in np.argwhere(~self.to_keep).flatten():
if idx > 0:
self.remove_label(idx)

0 comments on commit e1be53a

Please sign in to comment.