diff --git a/src/core/modules/StarMgr.cpp b/src/core/modules/StarMgr.cpp index db830deab7b407..cffcfe9c471f10 100644 --- a/src/core/modules/StarMgr.cpp +++ b/src/core/modules/StarMgr.cpp @@ -717,9 +717,8 @@ void StarMgr::populateHipparcosLists() doubleHipStars.push_back(sd); } // use separate variables for avoid the overflow (esp. for Barnard's star) - PMData properMotion = getProperMotion(s->getHip()); - float pmX = properMotion.first; - float pmY = properMotion.second; + float pmX = 0.01f*s->getDx0(); + float pmY = 0.01f*s->getDx0(); float pm = 0.001f * std::sqrt((pmX*pmX) + (pmY*pmY)); if (qAbs(pm)>=pmLimit) { diff --git a/src/core/modules/StarWrapper.cpp b/src/core/modules/StarWrapper.cpp index f272dbda4653f7..d407c124c2cb2f 100644 --- a/src/core/modules/StarWrapper.cpp +++ b/src/core/modules/StarWrapper.cpp @@ -160,7 +160,6 @@ QString StarWrapper1::getInfoString(const StelCore *core, const InfoStringGroup& const double vPeriod = StarMgr::getGcvsPeriod(s->getHip()); const int vMm = StarMgr::getGcvsMM(s->getHip()); const float plxErr = StarMgr::getPlxError(s->getHip()); - const PMData properMotion = StarMgr::getProperMotion(s->getHip()); if (s->getHip()) { if ((flags&Name) || (flags&CatalogNumber)) @@ -325,10 +324,10 @@ QString StarWrapper1::getInfoString(const StelCore *core, const InfoStringGroup& oss << getExtraInfoStrings(Distance).join(""); } - if (flags&ProperMotion && (!isNan(properMotion.first) && !isNan(properMotion.second))) + if (flags) { - float dx = properMotion.first; - float dy = properMotion.second; + float dx = 0.1f*s->getDx0(); + float dy = 0.1f*s->getDx1(); float pa = std::atan2(dx, dy)*M_180_PIf; if (pa<0) pa += 360.f;