Skip to content

Commit

Permalink
--bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Tittelbach committed Nov 15, 2012
1 parent e06bc00 commit 7d4ec2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkwaypoint.pl
Expand Up @@ -43,7 +43,7 @@ sub convert_single
{
my $c=uc(shift(@_));
$c=~s/,/./;
if ($c=~/(N|S|W|E|O)?\s*(\d{2,3})\D*(\d{1,2}\.\d{3})/) {
if ($c=~/(N|S|W|E|O)?\s*(\d{2,3})\D+(\d{1,2}\.\d{3})/) {
my $nv = ($2+($3/60));
$nv = 0.0-$nv if ($1 eq "S" or $1 eq "W");
return $nv;
Expand Down

0 comments on commit 7d4ec2e

Please sign in to comment.