~daggerstab/stellarium/windows-dll

« back to all changes in this revision

Viewing changes to plugins/MeteorShowers/src/MeteorShower.cpp

  • Committer: Marcos CARDINOT
  • Date: 2014-05-06 19:16:40 UTC
  • Revision ID: mcardinot@gmail.com-20140506191640-4kjmhmkc78g6bfy4
MeteorShowers plugin: cosmetic fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
 
135
135
QString MeteorShower::getDesignation() const
136
136
{
137
 
        QString d = "";
138
 
        if (showerID.toInt()==0)
139
 
                d = showerID;
140
 
        return d;
 
137
        if (showerID.toInt()) // if showerID is a number
 
138
        {
 
139
                return "";
 
140
        }
 
141
        return showerID;
141
142
}
142
143
 
143
144
QString MeteorShower::getDateFromJSON(QString jsondate) const
315
316
        if(flags&Name)
316
317
        {
317
318
                oss << "<h2>" << getNameI18n();
318
 
                if (showerID.toInt()==0)
 
319
                if (!showerID.toInt())
 
320
                {
319
321
                        oss << " (" << showerID  <<")</h2>";
 
322
                }
320
323
                else
 
324
                {
321
325
                        oss << "</h2>";
 
326
                }
322
327
        }
323
328
 
324
329
        if(flags&Extra)
 
330
        {
325
331
                oss << q_("Type: <b>%1</b> (%2)").arg(q_("meteor shower"), mstdata) << "<br />";
 
332
        }
326
333
 
327
334
        // Ra/Dec etc.
328
335
        oss << getPositionInfoString(core, flags);