Skip to content

Update PowerMeterPanel to guard against wrong wavelength indexing#27

Open
jdeschamps wants to merge 4 commits into
mainfrom
jd/fix/prevent_bad_indexing_powermeter
Open

Update PowerMeterPanel to guard against wrong wavelength indexing#27
jdeschamps wants to merge 4 commits into
mainfrom
jd/fix/prevent_bad_indexing_powermeter

Conversation

@jdeschamps

@jdeschamps jdeschamps commented Feb 18, 2025

Copy link
Copy Markdown
Owner

Somehow, selectedWavelength_ can become equal to -1 causing an out of index error when retrieving the slopes in the conversion.

This PR adds guards against storing -1 and calling out of index values and ensure an item is selected when updating the combobox model.

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.

1 participant