[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/tools
From:       Prakash Mohan <prak902000 () gmail ! com>
Date:       2010-06-17 21:54:37
Message-ID: 20100617220236.C04D2AC8D7 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1139258 by prakash:

Fixing a bug in WUT, it showed the next day for the moon set time when the rise time \
and set times were on the same day. [Does this fix the bug 211772 as well?]

CCMAIL: kstar-devel@kde.org


 M  +6 -0      wutdialog.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/wutdialog.cpp #1139257:1139258
@@ -211,6 +211,12 @@
     }
 
     WUT->MoonRiseLabel->setText( i18n( "Moon rises at: %1 on %2", sRise, \
KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate) ) ); +
+    // If the moon rises and sets on the same day, this will be valid [ Unless
+    // the moon sets on the next day after staying on for over 24 hours ]
+    if( moonSet > moonRise )
+        WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1 on %2", sSet, \
KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate) ) ); +    else
     WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1 on %2", sSet, \
KGlobal::locale()->formatDate( Tomorrow.date(), KLocale::LongDate) ) );  \
                oMoon->findPhase();
     WUT->MoonIllumLabel->setText( oMoon->phaseName() + QString( " (%1%)" ).arg(


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic