Skip to content

String index out of range when doing a complex inverse FFT #269

Description

@ovcretzu

When doing an inverse complex FFT on a stack with a short name, the following error appears: java.lang.StringIndexOutOfBoundsException: String index out of range: -9. This has to do with line 553 in FFT.java: String name = WindowManager.getUniqueName(imp.getTitle().substring(10)).

Steps to reproduce:

  • Open an image
  • Do a complex FFT
  • Rename the stack to something with <10 characters
  • Do an inverse FFT

Workaround: rename the stack to something with >10 characters

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions