[Kstars-devel] KDE/kdeedu/kstars/kstars/tools

Akarsh Simha akarshsimha at gmail.com
Sat May 30 08:07:09 CEST 2009


SVN commit 975410 by asimha:

This should fix bug 189399.

"Jupiter" might be translated in some languages, so putting an i18n on
the findByName call should prevent it from returning NULL and crashing
KStars. This should not introduce new strings as "Jupiter" is
translated elsewhere.

I can't test this fix because I don't have a language that translates
the string 'Jupiter', but it leaves the German and English versions
(that don't translate Jupiter) untouched. Please test this fix and
close the bug if it works.

CCBUG: 189399
CCMAIL: kstars-devel at kde.org



 M  +1 -1      jmoontool.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/jmoontool.cpp #975409:975410
@@ -114,7 +114,7 @@
     KPlotObject *jpath;
     long double jd0 = ksw->data()->ut().djd();
     KSSun *ksun = (KSSun*)ksw->data()->skyComposite()->findByName( "Sun" );
-    KSPlanet *jup = (KSPlanet*)ksw->data()->skyComposite()->findByName( "Jupiter" );
+    KSPlanet *jup = (KSPlanet*)ksw->data()->skyComposite()->findByName( i18n("Jupiter") );
     JupiterMoons jm;
 
     pw->removeAllPlotObjects();


More information about the Kstars-devel mailing list