Skip to content

subtract wave front subtracts the wrong wavefront #328

@gr5

Description

@gr5

I know exactly what is wrong and haven't even looked at the faulty code yet.

I was playing with DFTF and confirmed the bug and then remembered something. A few months ago (roughly) I remember Julien found a bug with the code in the subtractWavefronts code. The code created a list of wavefronts to display in the dialog so you could choose which one to subtract.

But there was a line of code that tried to remove the currently selected wavefront. But it had a bug. So the current wavefront was included.

This function returns the index into the list for which wavefront to subtract from the selected wavefront.

After julien fixed the code (or did I do it? I think Julien), the list properly removed the currently selected wavefront so you can't select the current wavefront from itself. But now the returned index is wrong. This should be an easy fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions