Add check for drop into itself for issue1948
This commit is contained in:
1 parent
2ab9b49712
commit
fb02ad5e68
1 file changed
+2
@@ -560,6 +560,8 @@ class ViewList(ParserView):
|
||||
def check_recursion(from_, to):
|
||||
if not from_ or not to:
|
||||
return True
|
||||
if from_ == to:
|
||||
return False
|
||||
length = min(len(from_), len(to))
|
||||
if len(from_) < len(to) and from_[:length] == to[:length]:
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user