X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/abe01db4642ea70f5d925ddcfccc6c7bf9ff8fe9..fe35ed0badc6a1a01237027effb74b82acbdb9e5:/Constructor/src/exclusa.cpp?ds=sidebyside diff --git a/Constructor/src/exclusa.cpp b/Constructor/src/exclusa.cpp index 680ce43..71475d6 100644 --- a/Constructor/src/exclusa.cpp +++ b/Constructor/src/exclusa.cpp @@ -48,6 +48,7 @@ bool Exclusa::on_button_press_event(GdkEventButton *event) if (CItem::logic_connect && CItem::gate_id != -1) { if ( detect_click_position((int)event->x, (int)event->y) == IN) { tmp_line.logic_id = workplace->get_logic_item(CItem::gate_id)->get_id(); + workplace->get_logic_item(CItem::gate_id)->set_out_connected(true); tmp_line.store_id = ID; workplace->lista_lineas_in.push_back(tmp_line); workplace->queue_draw(); @@ -57,6 +58,7 @@ bool Exclusa::on_button_press_event(GdkEventButton *event) workplace->lista_lineas_out.push_back(tmp_line); workplace->queue_draw(); } + CItem::gate_id = -1; } }