+ }
+
+ std::list<t_line>::iterator j = lista_lineas_out.begin();
+ while ( j != lista_lineas_out.end() ){
+ if ( get_item((*j).store_id) != NULL )
+ if ( get_item((*j).store_id)->get_id() == _id ) {
+ lista_lineas_out.erase(j);
+ j = lista_lineas_out.begin();
+ }
+ j++;
+ }
+
+ j = lista_lineas_out.begin();
+ while ( j != lista_lineas_out.end() ){
+ if ( get_logic_item((*j).logic_id) != NULL )
+ if ( get_logic_item((*j).logic_id)->get_id() == _id ) {
+ lista_lineas_out.erase(j);
+ j = lista_lineas_out.begin();
+ }
+ j++;