MainService.cpp   MainService.cpp 
skipping to change at line 165 skipping to change at line 165
obj2.insert("state",loc.state); obj2.insert("state",loc.state);
obj2.insert("landscapeKey",loc.landscapeKey); obj2.insert("landscapeKey",loc.landscapeKey);
obj.insert("location",obj2); obj.insert("location",obj2);
} }
//// Time related stuff //// Time related stuff
{ {
double jday = core->getJD(); double jday = core->getJD();
double deltaT = core->getDeltaT() * StelCore::JD_SEC OND; double deltaT = core->getDeltaT() * StelCore::JD_SEC OND;
double gmtShift = localeMgr->getGMTShift(jday) / 24. 0; double gmtShift = core->getUTCOffset(jday) / 24.0;
QString utcIso = StelUtils::julianDayToISO8601String (jday,true).append('Z'); QString utcIso = StelUtils::julianDayToISO8601String (jday,true).append('Z');
QString localIso = StelUtils::julianDayToISO8601Stri ng(jday+gmtShift,true); QString localIso = StelUtils::julianDayToISO8601Stri ng(jday+gmtShift,true);
//time zone string //time zone string
QString timeZone = localeMgr->getPrintableTimeZoneLo cal(jday); QString timeZone = localeMgr->getPrintableTimeZoneLo cal(jday);
QJsonObject obj2; QJsonObject obj2;
obj2.insert("jday",jday); obj2.insert("jday",jday);
obj2.insert("deltaT",deltaT); obj2.insert("deltaT",deltaT);
skipping to change at line 448 skipping to change at line 448
objMgr->unSelect(); objMgr->unSelect();
} }
} }
} }
return result; return result;
} }
void MainService::focusPosition(const Vec3d &pos) void MainService::focusPosition(const Vec3d &pos)
{ {
objMgr->unSelect(); objMgr->unSelect();
mvmgr->moveToJ2000(pos, mvmgr->getAutoMoveDuration()); mvmgr->moveToJ2000(pos, mvmgr->mountFrameToJ2000(Vec3d(0., 0., 1.)), mvmgr->getAutoMoveDuration());
} }
void MainService::updateMovement(float x, float y, bool xUpdated, bool yUpd ated) void MainService::updateMovement(float x, float y, bool xUpdated, bool yUpd ated)
{ {
if(xUpdated) if(xUpdated)
{ {
this->moveX = x; this->moveX = x;
} }
if(yUpdated) if(yUpdated)
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 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/