Skip to content

Commit

Permalink
Fix obvious issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jan 29, 2024
1 parent 2559add commit f3f2d74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
PROJECT(Stellarium C CXX)

SET(STELLARIUM_RELEASE_BUILD 0 CACHE BOOL "Set 1 to build as an official release (0 for development snapshots).")
# Number of the release (0 is used before first release)
SET(STELLARIUM_RELEASE_NUMBER 0)

########### Detect Qt version
SET(ENABLE_QT6 1 CACHE BOOL "Whether to try building with Qt6. If Qt6 is not found, Qt5 will be used.")
Expand All @@ -45,7 +43,8 @@ ENDIF()
# Example: first release in year 2023 has version 23.1.0 and short (public) version 23.1, series 23.0
# Note: Use integer versions instead of strings for easier handling if required
SET(STELLARIUM_MAJOR 24)
SET(STELLARIUM_MINOR ${STELLARIUM_RELEASE_NUMBER})
# Number of the release (0 is used before first release)
SET(STELLARIUM_MINOR 0)
IF(STELLARIUM_RELEASE_BUILD)
ADD_DEFINITIONS(-DSTELLARIUM_RELEASE_BUILD)
SET(CMAKE_BUILD_TYPE Release)
Expand Down
8 changes: 4 additions & 4 deletions src/core/StelObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,12 @@ QVariantMap StelObject::getInfoMap(const StelCore *core) const
{
QVariantMap map;

Vec3d pos;
double ra, dec, alt, az, glong, glat;
bool useOldAzimuth = StelApp::getInstance().getFlagSouthAzimuthUsage();
// ra/dec
Vec3d pos = getEquinoxEquatorialPos(core);
StelUtils::rectToSphe(&ra, &dec, pos);

QString currentObjStr = getEnglishName();
if (currentObjStr == "") // If objects have no name, we need something to represent it.
{
Expand All @@ -1052,9 +1055,6 @@ QVariantMap StelObject::getInfoMap(const StelCore *core) const

map.insert("type", getType());
map.insert("object-type", getObjectType());
// ra/dec
pos = getEquinoxEquatorialPos(core);
StelUtils::rectToSphe(&ra, &dec, pos);
map.insert("ra", ra*M_180_PI);
map.insert("dec", dec*M_180_PI);
map.insert("iauConstellation", core->getIAUConstellation(pos));
Expand Down

0 comments on commit f3f2d74

Please sign in to comment.