Skip to content

Commit aa176bf

Browse files
committed
Merge branch 'pasting-hotfix' into stable
2 parents 780b43a + 76a4f5c commit aa176bf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/interface/controller_state.ML

+6-3
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,12 @@ functor ControllerState(GraphicalTheory : GRAPHICAL_THEORY) : CONTROLLER_STATE
916916
let
917917
val sarg = get_graph state sname
918918
val targ = get_graph state tname
919-
val vrn = VSub.mk_from_avoids (Graph.get_vertices targ)
920-
val ern = ESub.mk_from_avoids (Graph.get_edges targ)
921-
val brn = BSub.mk_from_avoids (Graph.get_bboxes targ)
919+
val vrn = VSub.extend_fresh (Graph.get_vertices sarg)
920+
(VSub.mk_from_avoids (Graph.get_vertices targ))
921+
val ern = ESub.extend_fresh (Graph.get_edges sarg)
922+
(ESub.mk_from_avoids (Graph.get_edges targ))
923+
val brn = BSub.extend_fresh (Graph.get_bboxes sarg)
924+
(BSub.mk_from_avoids (Graph.get_bboxes targ))
922925
val ((vrn,ern,_), source) = Graph.rename_bang_graph (vrn,ern,brn) sarg
923926
(* Rename the ud and insert it on the new graph *)
924927
val ud_s = get_graph_ud state sname

0 commit comments

Comments
 (0)