summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-08-16 17:38:47 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:23:17 +0100
commitea32cf26f202c24462d90a8da7422b1bc1dd3949 (patch)
treef266dd1949e89be1fe61f3fa39514c558b1cdc4c /ishtar_common/models_common.py
parent64e14a2ac5834298258d2ddf1324f6e4bb00fb5a (diff)
downloadIshtar-ea32cf26f202c24462d90a8da7422b1bc1dd3949.tar.bz2
Ishtar-ea32cf26f202c24462d90a8da7422b1bc1dd3949.zip
Geo sheet: fix display coordinates
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r--ishtar_common/models_common.py6
1 files changed, 3 insertions, 3 deletions
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