Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
758948cb by wurstsalat at 2022-10-05T14:41:53+02:00
cfix: Preview: Limit displayed geo:-URI precision
- - - - -
1 changed file:
- gajim/gtk/preview.py
Changes:
=====================================
gajim/gtk/preview.py
=====================================
@@ -137,7 +137,8 @@ def update(self, preview: Preview, data:
Optional[GdkPixbufType]) -> None:
location = split_geo_uri(preview.uri)
self._ui.file_size.set_text(_('Lat: %s Lon: %s') % (
- location.lat, location.lon))
+ round(float(location.lat), 5),
+ round(float(location.lon), 5)))
self._ui.image_button.set_tooltip_text(
_('Location at Lat: %s Lon: %s') % (
location.lat, location.lon))
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/758948cb15589348c5ee7d90ce28059053e54ed8
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/758948cb15589348c5ee7d90ce28059053e54ed8
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits