From b484d9d137010eb40ef3bd8121bcf42256579d9b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Aug 2022 17:38:47 +0200 Subject: Geo sheet: fix display coordinates --- ishtar_common/models_common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index c88c71c35..d6d9fb4ae 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2331,10 +2331,10 @@ class GeoVectorData(Imported, OwnPerms): @property def display_spatial_reference_system(self): - profile = get_current_profile() - if not profile.display_srs or not profile.display_srs.srid: + if self.spatial_reference_system: return self.spatial_reference_system - return profile.display_srs + profile = get_current_profile() + return profile.srs def get_geo_items(self, get_polygons, rounded=5): label = self.label if hasattr(self, "label") else self.short_label -- cgit v1.2.3