Skip to content

Commit

Permalink
Merge pull request #99 from wmde/missingBreak
Browse files Browse the repository at this point in the history
Add missing break to globeCoordinate.Formatter
  • Loading branch information
JonasKress committed Apr 11, 2016
2 parents 33622aa + 944222a commit 40897f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/globeCoordinate/globeCoordinate.Formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
{ precision: 1 / 3600, text: 'to an arcsecond' },
{ precision: 1 / 36000, text: 'to 1/10 of an arcsecond' },
{ precision: 1 / 360000, text: 'to 1/100 of an arcsecond' },
{ precision: 1 / 3600000, text: 'to 1/1000 of an arcsecond' }
{ precision: 1 / 3600000, text: 'to 1/1000 of an arcsecond' },
{ precision: 1 / 36000000, text: '1/10000\'' }
],
format: 'decimal'
};
Expand Down Expand Up @@ -152,8 +153,9 @@
// Figure out if the precision is very close to a precision that can be expressed with a
// string:
for( var i in combinedOptions.precisionTexts ) {
if( Math.abs( precision - combinedOptions.precisionTexts[i].precision ) < 0.0000001 ) {
if ( Math.abs( precision - combinedOptions.precisionTexts[i].precision ) < 0.000000000001 ) {
precisionText = combinedOptions.precisionTexts[i].text;
break;
}
}

Expand Down

0 comments on commit 40897f4

Please sign in to comment.