GUI: ShapeDialog segfault when calculating profiles
This seems to happen only when selecting an invalid (red highlighted) peak from the peak list. The whole programme should not crash on the "no neighbouring profiles" exception.
Mean profile has inertia tensor
"-nan -nan -nan\n-nan -nan -nan\n-nan -nan -nan"
terminate called after throwing an instance of 'std::runtime_error'
what(): Error, no neighboring profiles found.
fish: Job 2, “./main/NSXTool” terminated by signal SIGABRT (Abort)