From eb95b779b5006ce4ef16ee1ffc1d15557d31ccef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20Dimov?= Date: Tue, 18 Nov 2003 04:01:30 +0000 Subject: [PATCH] Se puede conectar de una manera bizarra una OR con un TANQUE --- Constructor/cistern.cpp | 2 -- Constructor/constructor.cpp | 2 +- Constructor/workplace.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Constructor/cistern.cpp b/Constructor/cistern.cpp index 6bdb208..8d5a785 100644 --- a/Constructor/cistern.cpp +++ b/Constructor/cistern.cpp @@ -31,12 +31,10 @@ Cistern::~Cistern() bool Cistern::on_button_press_event(GdkEventButton *event) { GdkEventExpose e; - CItem *logic_item; t_line tmp_line; if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) { combo_entry->set_text(name); if (CItem::logic_connect) { - std::cout<get_logic_item(CItem::quien); tmp_line.store = this; workplace->lista_lineas.push_back(tmp_line); diff --git a/Constructor/constructor.cpp b/Constructor/constructor.cpp index 67e1a08..f754c48 100644 --- a/Constructor/constructor.cpp +++ b/Constructor/constructor.cpp @@ -94,7 +94,7 @@ Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtrdrag_dest_set(listTargets); workplace->signal_drag_data_received().connect( SigC::slot(*this, &Constructor::on_item_drop_drag_received) ); workplace->listaItems = &listaItems; - workplace->listaItems = &lista_logic_Items; + workplace->lista_logic_Items = &lista_logic_Items; logica = false; } diff --git a/Constructor/workplace.cpp b/Constructor/workplace.cpp index e1fa47d..ddc671e 100644 --- a/Constructor/workplace.cpp +++ b/Constructor/workplace.cpp @@ -49,7 +49,7 @@ CItem* WorkPlace::get_logic_item(int _id) std::list::iterator i = lista_logic_Items->begin(); while ( i != lista_logic_Items->end() ){ CItem *temp = *i; - if ( temp->get_id() == _id ) + if ( temp->get_id() == _id ) return temp; i++; } -- 2.43.0