Skip to content

FIX: GetAsDouble error - #250

Merged
julianmgerber merged 1 commit into
cositools:develop/emfrom
julianmgerber:main
Oct 18, 2026
Merged

julianmgerber merged 1 commit into
cositools:develop/emfrom
julianmgerber:main

Conversation

@julianmgerber

Copy link
Copy Markdown

The m_MaximumStrips parameter in the Multi Round Strip Pairing module is now an int type but was still being retrieved in the GUI as a double which was causing Nuclearizer to crash.

@julianmgerber
julianmgerber merged commit 8b995c2 into cositools:develop/em Oct 18, 2026
1 check passed
@fhagemann

fhagemann commented Oct 18, 2026 •

Copy link
Copy Markdown

This one I messed up, sorry 😇
Thanks for fixing it!

bool MGUIOptionsStripPairingMultiRoundChiSquare::OnApply()
{
dynamic_cast<MModuleStripPairingMultiRoundChiSquare*>(m_Module)->SetMaximumStrips(m_MaximumStrips->GetAsDouble());
dynamic_cast<MModuleStripPairingMultiRoundChiSquare*>(m_Module)->SetMaximumStrips(m_MaximumStrips->GetAsInt());

@fhagemann fhagemann Oct 18, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is relevant, but m_MaximumStrips was always an unsigned int (instead of just int):

Suggested change
dynamic_cast<MModuleStripPairingMultiRoundChiSquare*>(m_Module)->SetMaximumStrips(m_MaximumStrips->GetAsInt());
dynamic_cast<MModuleStripPairingMultiRoundChiSquare*>(m_Module)->SetMaximumStrips(m_MaximumStrips->GetAsUnsignedInt());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants