From afd059b36b77fed77e5a0e86652735a863efe853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Sun, 14 Sep 2025 13:43:20 +0200 Subject: [PATCH] Add some margins when retriving objects --- src/imageinfodata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/imageinfodata.cpp b/src/imageinfodata.cpp index 8e610ab..c73bab1 100644 --- a/src/imageinfodata.cpp +++ b/src/imageinfodata.cpp @@ -453,7 +453,8 @@ SkyGrid WCSDataT::prepareGrid(uint32_t w, uint32_t h, Database *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) { QPointF p;