freebsd-ports/comms/geoid/files/patch-geoid.cxx
Diane Bruce 5d56e046d8 Converts Lat / Lon to Maidenhead Grid Square and reverse
Computes range in kilometers and great circle bearing between
QTH and remote site specified by Lat/Lon or Maidenhead Grid Square
Computes range in kilometers and great circle bearing between QTH and
a site selected from a database list for all known callsign prefixes
and their geographic position.  Geographic position is by major city.
2007-12-23 21:08:45 +00:00

15 lines
522 B
C++

--- geoid.cxx.orig Mon Dec 18 13:53:07 2006
+++ geoid.cxx Tue Mar 20 22:02:44 2007
@@ -28,10 +28,8 @@
strFname.append("/.geoid/country.pos");
if (ReadGeoFile((char *)strFname.c_str()) == -1) {
- strFname = szHomedir;
- strFname.append("/country.pos");
- if (ReadGeoFile((char *)strFname.c_str()) == -1) {
- fl_message("Cannot open %s", (char *)strFname.c_str());
+ if (ReadGeoFile("%%LOCALBASE%%/share/geoid/country.pos") == -1) {
+ fl_message("Cannot open country.pos");
exit(0);
}
}