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

List:       kde-commits
Subject:    [kstars] kstars/widgets: Ooops fix compilation
From:       Khudyakov Alexey <alexey.skladnoy () gmail ! com>
Date:       2011-11-25 19:04:04
Message-ID: 20111125190404.D2D1AA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit b3d523b3797f8b9424823cf5889779d4a6c0caa7 by Khudyakov Alexey.
Committed on 25/11/2011 at 20:07.
Pushed by khudyakov into branch 'master'.

Ooops fix compilation

M  +3    -3    kstars/widgets/moonphasecalendarwidget.cpp

http://commits.kde.org/kstars/b3d523b3797f8b9424823cf5889779d4a6c0caa7

diff --git a/kstars/widgets/moonphasecalendarwidget.cpp b/kstars/widgets/mo=
onphasecalendarwidget.cpp
index 1404dc0..dc6705d 100644
--- a/kstars/widgets/moonphasecalendarwidget.cpp
+++ b/kstars/widgets/moonphasecalendarwidget.cpp
@@ -295,10 +295,10 @@ void MoonPhaseCalendar::paintCell( QPainter *painter,=
 int row, int col, const KC
 unsigned short MoonPhaseCalendar::computeMoonPhase( const KStarsDateTime &=
date ) {
 =

     KSNumbers num( date.djd() );
-    KSPlanet  earth( KSPlanet::Earth );
-    earth->findPosition( &num );
+    KSPlanet earth( I18N_NOOP( "Earth" ), QString(), QColor( "white" ), 12=
756.28 /*diameter in km*/ );
+    earth.findPosition( &num );
 =

-    m_Moon.findGeocentricPosition( &num, earth );
+    m_Moon.findGeocentricPosition( &num, &earth );
     m_Moon.findPhase();
 =

     return m_Moon.getIPhase();
[prev in list] [next in list] [prev in thread] [next in thread] 

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