Skip to content
Snippets Groups Projects
Commit e71021eb authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 027e5015
No related branches found
No related tags found
No related merge requests found
......@@ -286,7 +286,7 @@ void List_Insert_In_List(List_T *a, int i, List_T *b)
memcpy(List_Pointer_Fast(b, b->n - j - 1), List_Pointer_Fast(b, oldn - j - 1),
b->size);
for(int j = 0;j < a->n; j++)
memcpy(List_Pointer_Fast(b, oldn + j), List_Pointer_Fast(a, j), b->size);
memcpy(List_Pointer_Fast(b, i + j), List_Pointer_Fast(a, j), b->size);
}
void swap_bytes(char *array, int size, int n)
......
......@@ -3057,9 +3057,11 @@ bool SplitCurve(int line_id, List_T *vertices_id, List_T *shapes)
if(surface_curve->Num == c->Num){
List_Remove(s->Generatrices, j);
List_Insert_In_List(shapes, j, s->Generatrices);
j+=List_Nbr(shapes)-1;
}else if(surface_curve->Num == -c->Num){
List_Remove(s->Generatrices, j);
List_Insert_In_List(rshapes, j, s->Generatrices);
j+=List_Nbr(shapes)-1;
}
}
}
......@@ -3067,6 +3069,7 @@ bool SplitCurve(int line_id, List_T *vertices_id, List_T *shapes)
DeleteShape(c->Typ, c->Num);
List_Delete(new_list);
List_Delete(rshapes);
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment