Why does this box appear around shapes when I click on them? It seems to be preventing me editing it like I have done before. Any idea how to get rid of it?
because you have object drawing mode enabled. just below the toolbar's last icon shown in your screenshot is an object drawing mode toggle. toggle it off. and redraw you line.
or double click your line to edit it.
Retrieving data ...