diff -r 0572a215bd2f -r 5994b80b8760 eric6/Graphics/GraphicsUtilities.py --- a/eric6/Graphics/GraphicsUtilities.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Graphics/GraphicsUtilities.py Sun Apr 11 18:45:10 2021 +0200 @@ -65,11 +65,13 @@ for current in stage: currentParents = parents.get(current, []) for parent in currentParents: - if parent in stage and parent != current: - # might wind up removing current - if current not in parents.get(parent, []): - # is not mutually dependant - removes.append(current) + if ( + parent in stage and + parent != current and + current not in parents.get(parent, []) + ): + # is not mutually dependant + removes.append(current) for remove in removes: while remove in stage: