Skip to content

Commit

Permalink
Merge pull request #347 from scipp/remove_nodes_when_removing_shapes
Browse files Browse the repository at this point in the history
Remove old unused nodes that were left over when removing shapes
  • Loading branch information
nvaytet committed Jun 3, 2024
2 parents 3b72db6 + 61d3364 commit 939e97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plopp/widgets/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def update_node(self, artist):

def remove_node(self, artist):
nodeid = artist.nodeid
draw_node = self._draw_nodes[nodeid]
draw_node = self._draw_nodes.pop(nodeid)
output_node = self._output_nodes[nodeid]
if self._destination_is_fig:
self._destination.artists[output_node.id].remove()
Expand Down

0 comments on commit 939e97a

Please sign in to comment.