Skip to content

Commit

Permalink
Providing Partitioning Crash Protection for those using QT6.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlancaste committed Jun 23, 2024
1 parent 26b1a79 commit ca4afff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stellarsolver/stellarsolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,16 @@ bool StellarSolver::checkParameters()
{
if(m_ImageBuffer == nullptr)
{
emit logOutput("The image buffer is not loaded, please load an image before processing it");
emit logOutput("The image buffer is not loaded, please load an image before processing it.");
return false;
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
if(params.partition == true)
{
emit logOutput("There is a crash sometimes on QT6 when using partitioning. You are using QT6, so I am disabling partitioning to prevent a crash.");
params.partition = false;
}
#endif

if(m_ProcessType == SOLVE && m_SolverType == SOLVER_WATNEYASTROMETRY && (m_Statistics.dataType == SEP_TFLOAT || m_Statistics.dataType == SEP_TDOUBLE))
{
Expand Down

0 comments on commit ca4afff

Please sign in to comment.