Weasis icon indicating copy to clipboard operation
Weasis copied to clipboard

A MPR MIP bug?

Open liangaili opened this issue 1 year ago • 1 comments

Describe the bug. What happened?

Hi,

I am using source code from Dec 27, 2024.

This is how I reproduce the bug:

  1. Open any DICOM series
  2. Open MPR
  3. Set MIP thickness to 20
  4. Set MIP type to NONE
  5. Set MIP thickness to 20
  6. Interface will hang and will not respond to any click for a few seconds.

It seemes calling setSelectedItemWithoutTriggerAction instead of setSelectedItem can fix this, but I am not sure if I am doing it right.

public void setThicknessExtension(int extend) { if (extend > 0 && mprView != null && mprView.mprController.getMipTypeOption().getSelectedItem() == Type.NONE) { mprView.mprController.getMipTypeOption().setSelectedItemWithoutTriggerAction(Type.MAX); } this.thicknessExtension = extend; }

What version of Weasis are you running?

a1eff305d48b0805e433774463d4b8c24842ab08

On which system the problem occurs?

Windows

Relevant log output


Additional contextual elements

No response

liangaili avatar Feb 12 '25 06:02 liangaili

Please don't report bugs on features under development that don't refer to the status of the current branch.

nroduit avatar Feb 12 '25 06:02 nroduit