Fix long-standing bug that had gone unnoticed: 'shortest' calcuation should use top point, not bottom.