]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/pump.cpp
Se arregla bug en la union que hacia que el flujo inicial este en 0, y eso condicion...
[z.facultad/75.42/plaqui.git] / Constructor / src / pump.cpp
index 7526f6b86aa6703932c666806c73606041ec9a3d..9d2a95a0bc6e416cbbf747d4f53e50a229e26cfb 100644 (file)
@@ -48,7 +48,7 @@ bool Pump::on_button_press_event(GdkEventButton *event)
                                tmp_line.store = this;
                                workplace->lista_lineas_in.push_back(tmp_line);
                                workplace->queue_draw();
                                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);
                                tmp_line.logic =  workplace->get_logic_item(CItem::gate_id);
                                tmp_line.store = this;
                                workplace->lista_lineas_out.push_back(tmp_line);
@@ -91,6 +91,7 @@ bool Pump::on_button_press_event(GdkEventButton *event)
                pump_pty_wnd->txt_pump_name->set_text( name );
                pump_pty_wnd->show();
        }               
                pump_pty_wnd->txt_pump_name->set_text( name );
                pump_pty_wnd->show();
        }               
+       CItem::logic_connect =false;
        workplace->queue_draw();
        return true;
 }
        workplace->queue_draw();
        return true;
 }