]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/and.cpp
-Se arregla lo del id cuando se carga una planta
[z.facultad/75.42/plaqui.git] / Constructor / src / and.cpp
index 9ee2867a39b443a0f227a3ed0ae0eb049f06c3ba..0d8a795f98af04019ccda274002c543b051c5b50 100644 (file)
@@ -20,8 +20,12 @@ And::~And()
 
 bool And::on_button_press_event(GdkEventButton *event)
 {
 
 bool And::on_button_press_event(GdkEventButton *event)
 {
-       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1))
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) {
+               if (CItem::logic_connect)
+                       CItem::quien = ID;
                combo_entry->set_text(name);
                combo_entry->set_text(name);
+               WorkPlace::pointed = ID;
+       }
        
        if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){
                image = null;   
        
        if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){
                image = null;