StelObject.cpp   StelObject.cpp 
skipping to change at line 250 skipping to change at line 250
if (withDecimalDegree) if (withDecimalDegree)
res += q_("Galactic longitude/latitude: %1/%2").arg( StelUtils::radToDecDegStr(glong), StelUtils::radToDecDegStr(glat)) + "<br>" ; res += q_("Galactic longitude/latitude: %1/%2").arg( StelUtils::radToDecDegStr(glong), StelUtils::radToDecDegStr(glat)) + "<br>" ;
else else
res += q_("Galactic longitude/latitude: %1/%2").arg( StelUtils::radToDmsStr(glong,true), StelUtils::radToDmsStr(glat,true)) + "< br>"; res += q_("Galactic longitude/latitude: %1/%2").arg( StelUtils::radToDmsStr(glong,true), StelUtils::radToDmsStr(glat,true)) + "< br>";
} }
if ((flags&Extra) && core->getCurrentPlanet()->getEnglishName()=="Ea rth") if ((flags&Extra) && core->getCurrentPlanet()->getEnglishName()=="Ea rth")
{ {
double longitude=core->getCurrentLocation().longitude; double longitude=core->getCurrentLocation().longitude;
double sidereal=(get_mean_sidereal_time(core->getJD(), core- >getJDE()) + longitude) / 15.; double sidereal=(get_mean_sidereal_time(core->getJD(), core- >getJDE()) + longitude) / 15.;
sidereal=fmod(sidereal, 24.);
res += q_("Mean Sidereal Time: %1").arg(StelUtils::hoursToHm sStr(sidereal)) + "<br>"; res += q_("Mean Sidereal Time: %1").arg(StelUtils::hoursToHm sStr(sidereal)) + "<br>";
sidereal=(get_apparent_sidereal_time(core->getJD(), core->ge if (core->getUseNutation())
tJDE()) + longitude) / 15.; {
res += q_("Apparent Sidereal Time: %1").arg(StelUtils::hours sidereal=(get_apparent_sidereal_time(core->getJD(),
ToHmsStr(sidereal)) + "<br>"; core->getJDE()) + longitude) / 15.;
sidereal=fmod(sidereal, 24.);
res += q_("Apparent Sidereal Time: %1").arg(StelUtil
s::hoursToHmsStr(sidereal)) + "<br>";
}
} }
return res; return res;
} }
// Apply post processing on the info string // Apply post processing on the info string
void StelObject::postProcessInfoString(QString& str, const InfoStringGroup& flags) const void StelObject::postProcessInfoString(QString& str, const InfoStringGroup& flags) const
{ {
// chomp trailing line breaks // chomp trailing line breaks
str.replace(QRegExp("<br(\\s*/)?>\\s*$"), ""); str.replace(QRegExp("<br(\\s*/)?>\\s*$"), "");
 End of changes. 2 change blocks. 
4 lines changed or deleted 9 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/