]> git.llucax.com Git - z.facultad/75.42/plaqui.git/commitdiff
Se puede conectar de una manera bizarra una OR con un TANQUE
authorNicolás Dimov <ndimov@gmail.com>
Tue, 18 Nov 2003 04:01:30 +0000 (04:01 +0000)
committerNicolás Dimov <ndimov@gmail.com>
Tue, 18 Nov 2003 04:01:30 +0000 (04:01 +0000)
Constructor/cistern.cpp
Constructor/constructor.cpp
Constructor/workplace.cpp

index 6bdb2083b039a043a91520f6ef25c1a1a889e51a..8d5a78585a81c92066f59135f975297fc919ae73 100644 (file)
@@ -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<<workplace<<std::endl;
                        tmp_line.logic =  workplace->get_logic_item(CItem::quien);
                        tmp_line.store = this;
                        workplace->lista_lineas.push_back(tmp_line);
index 67e1a0855b99814b5d4ac2fefa722e74a0079eaf..f754c48517a7d79b35d85a96e925f4fbb2b90e55 100644 (file)
@@ -94,7 +94,7 @@ Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
        workplace->drag_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;
 }
 
index e1fa47d64ed092466304479d334f6b9f5f7d5215..ddc671e1aef34fbc3e1da68e6e4b6b536e809ea5 100644 (file)
@@ -49,7 +49,7 @@ CItem* WorkPlace::get_logic_item(int _id)
        std::list<CItem *>::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++;
        }