Add some margins when retriving objects

This commit is contained in:
2025-09-14 13:43:20 +02:00
parent 1b9f218acb
commit afd059b36b
+2 -1
View File
@@ -453,7 +453,8 @@ SkyGrid WCSDataT::prepareGrid(uint32_t w, uint32_t h, Database *database)
if(database) if(database)
{ {
skyGrid.objects = database->getObjects(minRa, maxRa, minDec, maxDec); double size = std::max(maxRa - minRa, maxDec - minDec);
skyGrid.objects = database->getObjects(minRa - size, maxRa + size, minDec - size, maxDec + size);
for(auto &object : skyGrid.objects) for(auto &object : skyGrid.objects)
{ {
QPointF p; QPointF p;