X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5042b6492969385725852d3cf90959abb52a7398..950f83d0e71dc886fcf5be9889796c5b2a85fa4c:/Constructor/src/cistern.cpp diff --git a/Constructor/src/cistern.cpp b/Constructor/src/cistern.cpp index ba58da5..5ad6ecb 100644 --- a/Constructor/src/cistern.cpp +++ b/Constructor/src/cistern.cpp @@ -52,7 +52,7 @@ bool Cistern::on_button_press_event(GdkEventButton *event) tmp_line.store = this; workplace->lista_lineas_in.push_back(tmp_line); workplace->queue_draw(); - } else { + } else if (detect_click_position(event->x, event->y) == OUT) { tmp_line.logic = workplace->get_logic_item(CItem::gate_id); tmp_line.store = this; workplace->lista_lineas_out.push_back(tmp_line); @@ -96,6 +96,7 @@ bool Cistern::on_button_press_event(GdkEventButton *event) cistern_pty_wnd->txt_cistern_name->set_text( name ); cistern_pty_wnd->show(); } + CItem::logic_connect =false; workplace->queue_draw(); return true; }