summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-10 20:49:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-10 20:49:39 +0000
commit6d21a23228a4b383181a9de5806643365fa0df7c (patch)
tree9072888061a5eb4a2fc67ae8fbcb24a7750e59f2
parent032c0701075eda0552f9539a4c9e7fec554399fd (diff)
downloadtdeedu-6d21a23228a4b383181a9de5806643365fa0df7c.tar.gz
tdeedu-6d21a23228a4b383181a9de5806643365fa0df7c.zip
Fix a reference to temporary in kdeedu
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1258268 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kstars/kstars/skyobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kstars/kstars/skyobject.cpp b/kstars/kstars/skyobject.cpp
index 03f973fe..29c6f7e5 100644
--- a/kstars/kstars/skyobject.cpp
+++ b/kstars/kstars/skyobject.cpp
@@ -101,7 +101,8 @@ TQTime SkyObject::riseSetTime( const KStarsDateTime &dt, const GeoLocation *geo,
//to bring it above the horizon
KStarsDateTime dt2 = dt;
SkyPoint p = recomputeCoords( dt, geo );
- p.EquatorialToHorizontal( &(geo->GSTtoLST( dt.gst() )), geo->lat() );
+ dms gegsls = (geo->GSTtoLST( dt.gst() ));
+ p.EquatorialToHorizontal( &gegsls, geo->lat() );
if ( p.alt()->Degrees() < 0.0 ) {
if ( p.az()->Degrees() < 180.0 ) { //object has not risen yet
dt2 = dt.addSecs( 12.*3600. );