Skip to content

Commit

Permalink
Add missing break to globeCoordinate.Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
thiemowmde committed Apr 11, 2016
1 parent 33622aa commit a3c5817
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/globeCoordinate/globeCoordinate.Formatter.js
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 arcsecond' }
],
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 a3c5817

Please sign in to comment.