Skip to content

Commit

Permalink
[SSE] Cosmetic fixes for bookmarks of a numbered minor planets
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Aug 27, 2024
1 parent 16b08f6 commit 2ba802d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/SolarSystemEditor/src/gui/MpcImportWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,16 +1054,16 @@ void MpcImportWindow::loadBookmarks()
bookmarks[MpcMinorPlanets].insert("MPCAT: Distant minor planets (Centaurs and transneptunians)", "https://www.minorplanetcenter.net/iau/ECS/MPCAT/distant.txt");

const int start = 0;
const int finish = 61;
const int finish = 72;
const int nsize = 6;
const QChar dash = QChar(0x2014);

QString limits, idx, leftLimit, rightLimit;

for (int i=start; i<=finish; i++)
{
leftLimit = (i==start) ? QString::number(1).rightJustified(nsize) : QString::number(i*10000).rightJustified(nsize);
rightLimit = (i==finish) ? "..." : QString::number(i*10000 + 9999).rightJustified(nsize);
leftLimit = (i==start) ? QString::number(1).rightJustified(nsize, '0') : QString::number(i*10000).rightJustified(nsize, '0');
rightLimit = (i==finish) ? "..." : QString::number(i*10000 + 9999).rightJustified(nsize, '0');
limits = QString("%1%2%3").arg(leftLimit, dash, rightLimit);
idx = QString::number(i+1).rightJustified(2, '0');
bookmarks[MpcMinorPlanets].insert(
Expand Down

0 comments on commit 2ba802d

Please sign in to comment.