X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5042b6492969385725852d3cf90959abb52a7398..fc802b7aea75e90b19cd22d3e5e752620a416af8:/Constructor/src/workplace.cpp?ds=inline diff --git a/Constructor/src/workplace.cpp b/Constructor/src/workplace.cpp index f526cb5..e19ae3b 100644 --- a/Constructor/src/workplace.cpp +++ b/Constructor/src/workplace.cpp @@ -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()