Added support for star InfoURLs to Win32 front-end.

ver1_6_1
Chris Laurel 2008-04-13 20:19:23 +00:00
parent 8db5a85e19
commit 93660632d8
1 changed files with 7 additions and 4 deletions

View File

@ -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;