HomePhabricator
Diffusion MITK 663e373e312f

Fix loop and data type in LevelWindow::SetAuto()

Description

Fix loop and data type in LevelWindow::SetAuto()

Summary:
The loop took the first image dimension 2x into account.
The data type of the counting var was too small to handle medium to large sized images.

Fixes T27885.

Test Plan: Ran LevelWindow tests and checked manually whether the default image appearance changed.

Reviewers: O1 MITK Reviewer Group I, floca

Reviewed By: O1 MITK Reviewer Group I, floca

Maniphest Tasks: T27885

Differential Revision: https://phabricator.mitk.org/D430

Details

Provenance
kislinskAuthored on Oct 15 2020, 9:44 AM
kislinskPushed on Oct 15 2020, 6:57 PM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITKb04e68dba7f1: Fix loop and data type
rMITKc25989b3eaa9: Merge remote-tracking branch 'origin/hotfix/T27887-fix-packaging-with-system…
Branches
Unknown
Tags
Unknown
Tasks
T27885: numPixelsInDataset calc may not currect in mitkLevelWindow::SetAuto