[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars
From: Jasem Mutlaq <mutlaqja () ikarustech ! com>
Date: 2005-06-13 18:22:17
Message-ID: 1118686937.476646.20113.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 425052 by mutlaqja:
Change behavior of UTtoJD function to be more consistent with the definition of struct tm
M +0 -2 indi/apmount.cpp
M +2 -2 indi/indicom.c
M +3 -2 indi/lx200generic.cpp
M +1 -0 indistd.cpp
M +1 -0 telescopeprop.cpp
--- trunk/KDE/kdeedu/kstars/kstars/indi/apmount.cpp #425051:425052
@@ -330,9 +330,7 @@
IDSetText(&TimeTP , "Time invalid");
return;
}
- utm.tm_mon += 1;
ltp->tm_mon += 1;
- utm.tm_year += 1900;
ltp->tm_year += 1900;
tzset();
--- trunk/KDE/kdeedu/kstars/kstars/indi/indicom.c #425051:425052
@@ -393,8 +393,8 @@
/* Note: The tm_year was modified by adding +1900 to it since tm_year refers
to the number of years after 1900. The month field was also modified by adding 1 to it
since the tm_mon range is from 0 to 11 */
- year = utm->tm_year;
- month = utm->tm_mon;
+ year = utm->tm_year + 1900;
+ month = utm->tm_mon + 1;
day = utm->tm_mday;
hour = utm->tm_hour;
minute = utm->tm_min;
--- trunk/KDE/kdeedu/kstars/kstars/indi/lx200generic.cpp #425051:425052
@@ -442,9 +442,7 @@
IDSetText(&Time , "Time invalid");
return;
}
- utm.tm_mon += 1;
ltp->tm_mon += 1;
- utm.tm_year += 1900;
ltp->tm_year += 1900;
@@ -486,6 +484,9 @@
// update JD
JD = UTtoJD(&utm);
+ utm.tm_mon += 1;
+ utm.tm_year += 1900;
+
IDLog("New JD is %f\n", (float) JD);
if ((localTM->tm_mday == ltp->tm_mday ) && (localTM->tm_mon == ltp->tm_mon) &&
--- trunk/KDE/kdeedu/kstars/kstars/indistd.cpp #425051:425052
@@ -217,6 +217,7 @@
{
case EQUATORIAL_COORD:
case EQUATORIAL_EOD_COORD:
+ case HORIZONTAL_COORD:
//ksw->map()->forceUpdateNow();
ksw->map()->update();
break;
--- trunk/KDE/kdeedu/kstars/kstars/telescopeprop.cpp #425051:425052
@@ -55,6 +55,7 @@
telescopeListBox->insertItem(indi_driver->devices[i]->label);
}
+ telescopeListBox->setCurrentItem(0);
updateScopeDetails(0);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic