SatellitesDialog.cpp   SatellitesDialog.cpp 
skipping to change at line 999 skipping to change at line 999
} }
} }
void SatellitesDialog::selectCurrentIridiumFlare(const QModelIndex &modelIn dex) void SatellitesDialog::selectCurrentIridiumFlare(const QModelIndex &modelIn dex)
{ {
// Find the object // Find the object
QString name = modelIndex.sibling(modelIndex.row(), IridiumFlaresSat ellite).data().toString(); QString name = modelIndex.sibling(modelIndex.row(), IridiumFlaresSat ellite).data().toString();
QString date = modelIndex.sibling(modelIndex.row(), IridiumFlaresDat e).data().toString(); QString date = modelIndex.sibling(modelIndex.row(), IridiumFlaresDat e).data().toString();
bool ok; bool ok;
double JD = StelUtils::getJulianDayFromISO8601String(date.left(10) + "T" + date.right(8), &ok); double JD = StelUtils::getJulianDayFromISO8601String(date.left(10) + "T" + date.right(8), &ok);
JD -= StelUtils::getGMTShiftFromQT(JD)/24.; JD -= StelApp::getInstance().getCore()->getUTCOffset(JD)/24.;
StelObjectMgr* objectMgr = GETSTELMODULE(StelObjectMgr); StelObjectMgr* objectMgr = GETSTELMODULE(StelObjectMgr);
if (objectMgr->findAndSelectI18n(name) || objectMgr->findAndSelect(n ame)) if (objectMgr->findAndSelectI18n(name) || objectMgr->findAndSelect(n ame))
{ {
StelApp::getInstance().getCore()->setJD(JD); StelApp::getInstance().getCore()->setJD(JD);
const QList<StelObjectP> newSelected = objectMgr->getSelecte dObject(); const QList<StelObjectP> newSelected = objectMgr->getSelecte dObject();
if (!newSelected.empty()) if (!newSelected.empty())
{ {
StelMovementMgr* mvmgr = GETSTELMODULE(StelMovementM gr); StelMovementMgr* mvmgr = GETSTELMODULE(StelMovementM gr);
mvmgr->moveToObject(newSelected[0], mvmgr->getAutoMo veDuration()); mvmgr->moveToObject(newSelected[0], mvmgr->getAutoMo veDuration());
 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/