diff options
author | James Westman <james@flyingpimonster.net> | 2020-11-09 22:14:07 -0600 |
---|---|---|
committer | James Westman <james@flyingpimonster.net> | 2020-11-09 22:14:07 -0600 |
commit | 5e9fd0fe1ce2f0edf54cacb45b58c0dd321d602a (patch) | |
tree | d38591e4ab776e450d7b7c270c322562dc3fbd02 | |
parent | cdddc0b1f9b54ca6df01641eb3e2e0cb2b6b2618 (diff) | |
download | gnome-maps-5e9fd0fe1ce2f0edf54cacb45b58c0dd321d602a.tar.gz |
sendToDialog: Limit precision of coordinates
Limit decimal precision of coordinates in the send to dialog to 5 decimal
places, like elsewhere in Maps.
See also https://xkcd.com/2170.
-rw-r--r-- | src/sendToDialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sendToDialog.js b/src/sendToDialog.js index 9c3e9632..50198014 100644 --- a/src/sendToDialog.js +++ b/src/sendToDialog.js @@ -158,8 +158,8 @@ var SendToDialog = GObject.registerClass({ lines.push(details); } - lines.push('%f, %f'.format(this._location.latitude, - this._location.longitude)); + lines.push('%f, %f'.format(this._location.latitude.toFixed(5), + this._location.longitude.toFixed(5))); return lines.join('\n'); } |