Skip to content
Commit d605210d authored by Akarsh Simha's avatar Akarsh Simha
Browse files

Fix precession bug: Reset lastPrecessJD when star data is reinitialized

We now recompute precession corrections only if there has been a large
shift in time.

With dynamically loaded stars (DeepStarComponent), the star object is
recycled in memory to avoid the overhead of memory allocation and
construction. The new star data is re-initialized in a pre-existing
StarObject by calling StarObject::init() with the new data.

Since we added the lastPrecessJD much later, it has to be initialized
in StarObject::init(); otherwise, the catalog coordinates will not be
precessed when a previously existing StarObject is re-purposed for a
new star.

CCMAIL: kstars-devel@kde.org, mutlaqja@ikarustech.com
parent f9e21e4a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment