]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/not.cpp
la ultima subida antes de irme a dormir
[z.facultad/75.42/plaqui.git] / Constructor / src / not.cpp
index dcf95c207d90b0edfef453f557b77b705057f636..2a4b277e2f9ce09103ffbacbb98a23544cd4d51d 100644 (file)
@@ -20,9 +20,10 @@ Not::~Not()
 
 bool Not::on_button_press_event(GdkEventButton *event)
 {
 
 bool Not::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::gate_id = ID;
+               CItem::logic_connect = true;
+               CItem::gate_id = ID;
                combo_entry->set_text(name);
                WorkPlace::pointed = ID;
        }
                combo_entry->set_text(name);
                WorkPlace::pointed = ID;
        }