From 7c4118b0b675ba98d569f4c9e7933c7c34b33b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Thu, 10 Apr 2025 00:34:14 +0200 Subject: [PATCH] Fix bug in script solver --- scriptengine.cpp | 2 +- solver.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scriptengine.cpp b/scriptengine.cpp index 0cb1b8e..b9f0141 100644 --- a/scriptengine.cpp +++ b/scriptengine.cpp @@ -241,7 +241,7 @@ void ScriptEngine::setStartingSolution(const QJSValue &solution) if(solution.isObject()) { if(solution.hasProperty("ra") && solution.hasProperty("dec") && solution.property("ra").isNumber() && solution.property("dec").isNumber()) - _solver->setSearchPosition(solution.property("ra").toNumber(), solution.property("dec").toNumber()); + _solver->setSearchPosition(solution.property("ra").toNumber() / 15.0, solution.property("dec").toNumber()); if(solution.hasProperty("pixscale") && solution.property("pixscale").isNumber()) { diff --git a/solver.cpp b/solver.cpp index 3bc221e..870b5ed 100644 --- a/solver.cpp +++ b/solver.cpp @@ -41,7 +41,7 @@ bool Solver::loadImage(const QString &path) _loaded = false; std::shared_ptr image; ImageInfoData info; - if(::loadImage(path, info, image, true)) + if(::loadImage(path, info, image, 0, true)) { return loadImage(image, path); }