mirror of https://github.com/kivy/kivy.git
graphics: avoid error in case of multiple rremove: same behavior as remove_widget(). closes #481
This commit is contained in:
parent
f31acf830d
commit
65a9ea4586
|
@ -69,6 +69,8 @@ cdef class Instruction:
|
|||
self.set_parent(ig)
|
||||
|
||||
cdef void rremove(self, InstructionGroup ig):
|
||||
if self.parent is None:
|
||||
return
|
||||
ig.children.remove(self)
|
||||
self.set_parent(None)
|
||||
|
||||
|
|
Loading…
Reference in New Issue