diff options
| 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 | 
| commit | b484d9d137010eb40ef3bd8121bcf42256579d9b (patch) | |
| tree | f266dd1949e89be1fe61f3fa39514c558b1cdc4c /ishtar_common | |
| parent | 6e626e92a01722dd2814e8827753ed0e1a653f9b (diff) | |
| download | Ishtar-b484d9d137010eb40ef3bd8121bcf42256579d9b.tar.bz2 Ishtar-b484d9d137010eb40ef3bd8121bcf42256579d9b.zip  | |
Geo sheet: fix display coordinates
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/models_common.py | 6 | 
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  | 
