3 Jan 06:07
KDE/kdeedu/kstars/kstars
Jason Harris <kstars <at> 30doradus.org>
2008-01-03 05:07:38 GMT
2008-01-03 05:07:38 GMT
SVN commit 756311 by harris:
Compute angular size for the sun.
Correct object type for moon in detail dialog.
CCMAIL: kstars-devel <at> kde.org
M +7 -4 detaildialog.cpp
M +4 -0 kssun.cpp
--- trunk/KDE/kdeedu/kstars/kstars/detaildialog.cpp #756310:756311
@@ -111,7 +111,7 @@
QString pname, oname;
switch ( selectedObject->type() ) {
- case 0: //stars
+ case SkyObject::STAR:
s = (StarObject *)selectedObject;
Data->Names->setText( s->longname() );
@@ -151,15 +151,18 @@
break; //end of stars case
- case 9: //asteroids [fall through to planets]
- case 10: //comets [fall through to planets]
- case 2: //planets (including comets and asteroids)
+ case SkyObject::ASTEROID: //[fall through to planets]
+ case SkyObject::COMET: //[fall through to planets]
+ case SkyObject::MOON: //[fall through to planets]
(Continue reading)
RSS Feed