summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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. );