[svn r7462] Fixed a subtle bug in cavestats.c which causes surveys with only 2 stations to get mishandled.

This commit is contained in:
dave
2006-06-28 22:42:43 +02:00
parent 6ed661c42c
commit fce414cdca
3 changed files with 28 additions and 28 deletions

View File

@@ -266,7 +266,7 @@ main(int argc, char **argv)
if(c_stns == 2)
{
if (!compact_output) printf("Horizontal extent = %.2fm (from %s to %s)\n", planlen, stns[0].name, stns[1].name);
else printf("%.2f\t%.2f\t%.2f", planlen, umost.pt.z-lmost.pt.z, planlen);
else printf("%.2f\t%.2f\t%.2f", totlen, umost.pt.z-lmost.pt.z, planlen);
return EXIT_SUCCESS;
}