Skip to content

Commit

Permalink
Include selected_edges in ProofPanel.parse_selection
Browse files Browse the repository at this point in the history
  • Loading branch information
boldar99 committed Nov 15, 2023
1 parent 36ff753 commit cd63c70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zxlive/proof_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ def init_rewrites_bar(self) -> None:

def parse_selection(self) -> tuple[list[VT], list[ET]]:
selection = list(self.graph_scene.selected_vertices)
edges = set(self.graph_scene.selected_edges)
g = self.graph_scene.g
edges = []
for e in g.edges():
s,t = g.edge_st(e)
if s in selection and t in selection:
edges.append(e)
edges.add(e)

return selection, edges
return selection, list(edges)

def _vert_moved(self, vs: list[tuple[VT, float, float]]) -> None:
cmd = MoveNodeInStep(self.graph_view, vs, self.step_view)
Expand Down

0 comments on commit cd63c70

Please sign in to comment.