]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/workplace.cpp
la ultima subida antes de irme a dormir
[z.facultad/75.42/plaqui.git] / Constructor / src / workplace.cpp
index f526cb56da8a27eb68d9886bbe620169a291d2cd..e19ae3b1ecf3ec369950d1b91b19f699cea7030b 100644 (file)
@@ -98,6 +98,7 @@ void WorkPlace::delete_line(int _id)
                }
                i++;
        }
+
        i = lista_lineas_in.begin();
        while ( i != lista_lineas_in.end() ){
                if ( (*i).logic->get_id() == _id ) {
@@ -105,7 +106,25 @@ void WorkPlace::delete_line(int _id)
                        i = lista_lineas_in.begin();
                }
                i++;
+       }
+
+       i = lista_lineas_out.begin();
+       while ( i != lista_lineas_out.end() ){
+               if ( (*i).store->get_id() == _id ) {
+                       lista_lineas_out.erase(i);
+                       i = lista_lineas_out.begin();
+               }
+               i++;
        }       
+       i = lista_lineas_out.begin();
+       while ( i != lista_lineas_out.end() ){
+               if ( (*i).logic->get_id() == _id ) {
+                       lista_lineas_out.erase(i);
+                       i = lista_lineas_out.begin();
+               }
+               i++;
+       }       
+
 }
 
 void WorkPlace::update_logic_position()