Commit fa354ea4 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

bugfix in ViewBox.clear

parent 1b17bc6a
...@@ -295,7 +295,7 @@ class ViewBox(GraphicsWidget): ...@@ -295,7 +295,7 @@ class ViewBox(GraphicsWidget):
for i in self.addedItems[:]: for i in self.addedItems[:]:
self.removeItem(i) self.removeItem(i)
for ch in self.childGroup.childItems(): for ch in self.childGroup.childItems():
ch.setParent(None) ch.setParentItem(None)
def resizeEvent(self, ev): def resizeEvent(self, ev):
#self.setRange(self.range, padding=0) #self.setRange(self.range, padding=0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment