Resolve "Penalty mark distance is not correctly set from geometry"

Closes #1677

See merge request main/Sumatra!1435

sumatra-commit: cbb8f8e44fb074834fe96ef22218bd2523e40d37
2 jobs for master in 8 minutes and 27 seconds (queued for 4 seconds)
Status Name Job ID Coverage
  Build
passed build #70046

00:04:51

passed test #70047

00:07:06