Added support for star InfoURLs to Win32 front-end.
parent
8db5a85e19
commit
93660632d8
|
@ -1735,10 +1735,13 @@ void ShowWWWInfo(const Selection& sel)
|
|||
|
||||
case Selection::Type_Star:
|
||||
{
|
||||
char name[32];
|
||||
sprintf(name, "HIP%d", sel.star()->getCatalogNumber() & ~0xf0000000);
|
||||
|
||||
url = string("http://simbad.u-strasbg.fr/sim-id.pl?protocol=html&Ident=") + name;
|
||||
url = sel.star()->getInfoURL();
|
||||
if (url.empty())
|
||||
{
|
||||
char name[32];
|
||||
sprintf(name, "HIP%d", sel.star()->getCatalogNumber() & ~0xf0000000);
|
||||
url = string("http://simbad.u-strasbg.fr/sim-id.pl?protocol=html&Ident=") + name;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue