summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Zotti <Georg.Zotti@univie.ac.at>2023-08-05 14:19:24 +0200
committerGeorg Zotti <Georg.Zotti@univie.ac.at>2023-08-05 14:19:24 +0200
commit52e96758a43625be884e70d59f8feb7da3c3beac (patch)
treea50a60d825fb87e614612e2189bb1e8d028e7446
parent8b0088a1b4d6cf6131247771f264cc10fe0ad0a9 (diff)
Fixed a logic error introduced by previous edit.fix/orbit_details
-rw-r--r--src/core/modules/SolarSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/modules/SolarSystem.cpp b/src/core/modules/SolarSystem.cpp
index cb059cc6dd..bb8aa2461a 100644
--- a/src/core/modules/SolarSystem.cpp
+++ b/src/core/modules/SolarSystem.cpp
@@ -2657,8 +2657,8 @@ void SolarSystem::reconfigureOrbits()
{
// Display only orbit for selected planet and, if requested, its moons.
for (const auto& p : qAsConst(systemPlanets))
- p->setFlagOrbits( (p==selected && ( !flagPlanetsOrbitsOnly || p->getPlanetType()==Planet::isPlanet )
- || (flagOrbitsWithMoons && p->getPlanetType()==Planet::isMoon && p->parent==selected ) ));
+ p->setFlagOrbits( (p==selected && ( !flagPlanetsOrbitsOnly || p->getPlanetType()==Planet::isPlanet ) )
+ || (flagOrbitsWithMoons && p->getPlanetType()==Planet::isMoon && p->parent==selected ) );
return;
}
}