Exoplanet.cpp   Exoplanet.cpp 
skipping to change at line 419 skipping to change at line 419
{ {
return 0.0001; return 0.0001;
} }
bool Exoplanet::isDiscovered(const StelCore *core) bool Exoplanet::isDiscovered(const StelCore *core)
{ {
int year, month, day; int year, month, day;
QList<int> discovery; QList<int> discovery;
// For getting value of new year from midnight at 1 Jan we need incr ease a value of JD on 0.5. // For getting value of new year from midnight at 1 Jan we need incr ease a value of JD on 0.5.
// This hack need for correct display of discovery mode of exoplanet s. // This hack need for correct display of discovery mode of exoplanet s.
StelUtils::getDateFromJulianDay(core->getJDay()+0.5, &year, &month, &day); StelUtils::getDateFromJulianDay(core->getJD()+0.5, &year, &month, &d ay);
discovery.clear(); discovery.clear();
foreach(const exoplanetData &p, exoplanets) foreach(const exoplanetData &p, exoplanets)
{ {
if (p.discovered>0) if (p.discovered>0)
{ {
discovery.append(p.discovered); discovery.append(p.discovered);
} }
} }
qSort(discovery.begin(),discovery.end()); qSort(discovery.begin(),discovery.end());
if (!discovery.isEmpty()) if (!discovery.isEmpty())
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/