gedref: fix a bug in dijkstra stop condition
Georef: remove warning
Merge pull request #527 from antoine-de/fix_dijkstra_distance

Fix dijkstra distance