From 6d21a23228a4b383181a9de5806643365fa0df7c Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 10 Oct 2011 20:49:39 +0000 Subject: 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 --- kstars/kstars/skyobject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. ); -- cgit v1.2.1