Skip to content

Commit

Permalink
Pass exact instead of hard-coding it
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Apr 1, 2024
1 parent ea57c14 commit 353ccf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kstars/ekos/ekoslive/media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ void Media::onTextReceived(const QString &message)
{
int level = payload["level"].toInt(5);
double zoom = payload["zoom"].toInt(20000);
bool exact = payload["exact"].toBool(false);

// Object Names
QVariantList objectNames = payload["names"].toArray().toVariantList();

for (auto &oneName : objectNames)
{
const QString name = oneName.toString();
SkyObject *oneObject = KStarsData::Instance()->skyComposite()->findByName(name, false);
SkyObject *oneObject = KStarsData::Instance()->skyComposite()->findByName(name, exact);
if (oneObject)
{
QImage centerImage(HIPS_TILE_WIDTH, HIPS_TILE_HEIGHT, QImage::Format_ARGB32_Premultiplied);
Expand Down

0 comments on commit 353ccf3

Please sign in to comment.