summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Zotti <Georg.Zotti@univie.ac.at>2023-01-31 17:25:02 +0100
committerGeorg Zotti <Georg.Zotti@univie.ac.at>2023-01-31 17:25:02 +0100
commit19ade1f98cb8451812347923d907a963cea40298 (patch)
tree6959a3a7074581d611ec9f70b068223289a85b78
parent41d936b3b9087a2362e344cf2bd4972762bd7bba (diff)
-rw-r--r--src/core/StelLocation.cpp2
-rw-r--r--src/core/StelLocation.hpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/StelLocation.cpp b/src/core/StelLocation.cpp
index eaf85f63c1..6d5b526455 100644
--- a/src/core/StelLocation.cpp
+++ b/src/core/StelLocation.cpp
@@ -108,7 +108,7 @@ float StelLocation::getLongitude() const
ss=GETSTELMODULE(SolarSystem);
PlanetP planet=nullptr;
if (ss)
- planet=GETSTELMODULE(SolarSystem)->searchByEnglishName(planetName);
+ planet=ss->searchByEnglishName(planetName);
if (planet && planet->getPlanetType()==Planet::isObserver)
return 0.f;
else
diff --git a/src/core/StelLocation.hpp b/src/core/StelLocation.hpp
index 44699be02f..e54779e685 100644
--- a/src/core/StelLocation.hpp
+++ b/src/core/StelLocation.hpp
@@ -138,7 +138,6 @@ private:
float longitude;
//! Latitude in degree
float latitude;
-
};
Q_DECLARE_METATYPE(StelLocation)