issue 507 - dia crashes with custom shape
Check that the DDisplay object diagram->data->selected is not null before calling diagram_find_closest_handle in diagram.c.
Check that the DDisplay object diagram->data->selected is not null before calling diagram_find_closest_handle in diagram.c.