]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/cistern.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 / cistern.cpp
index ba58da5dee6dd32b014c974acd671d1b54c448ac..5ad6ecb985542211229765ec4d3af3dc53440095 100644 (file)
@@ -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();
                                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);
@@ -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();
        }               
                cistern_pty_wnd->txt_cistern_name->set_text( name );
                cistern_pty_wnd->show();
        }               
+       CItem::logic_connect =false;
        workplace->queue_draw();
        return true;
 }
        workplace->queue_draw();
        return true;
 }