Index: layer.c =================================================================== --- layer.c (revision 30980) +++ layer.c (revision 30981) @@ -1071,12 +1071,12 @@ } if (new_index == -1 && is_last_top_copper_layer(pcb, old_index)) { - pcb_hid_message_box(&pcb->hidlib, "warning", "Layer delete", "You can't delete the last top-side layer\n", "cancel", 0, NULL); + rnd_hid_message_box(&pcb->hidlib, "warning", "Layer delete", "You can't delete the last top-side layer\n", "cancel", 0, NULL); return 1; } if (new_index == -1 && is_last_bottom_copper_layer(pcb, old_index)) { - pcb_hid_message_box(&pcb->hidlib, "warning", "Layer delete", "You can't delete the last bottom-side layer\n", "cancel", 0, NULL); + rnd_hid_message_box(&pcb->hidlib, "warning", "Layer delete", "You can't delete the last bottom-side layer\n", "cancel", 0, NULL); return 1; }