sn4k3 / UVtools

MSLA/DLP, file analysis, calibration, repair, conversion and manipulation
GNU Affero General Public License v3.0
1.15k stars 103 forks source link

[Bug] Opening dialog Pixel Arithmetic resets layer to 1 - so can't use 'current layer' options #856

Closed tlhintoq closed 4 months ago

tlhintoq commented 4 months ago

System

UVtools v4.2.5 X64
Operative system: Microsoft Windows 10.0.19045 X64
Graphic card: 
Processor: 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz
Processor cores: 16
Memory RAM: 22.59 / 63.71 GB
Runtime: win10-x64
Framework: .NET 6.0.28
AvaloniaUI: 11.0.10
OpenCV: 4.8.1

Sreens, resolution, working area, usable area:
1: 1920 x 1080 @ 100% (Primary) (On this)
    WA: 1920 x 1040    UA: 1920 x 1040
2: 2560 x 1080 @ 100%
    WA: 2560 x 1040    UA: 2560 x 1040
3: 2560 x 1080 @ 100%
    WA: 2560 x 1040    UA: 2560 x 1040

Path:       C:\Program Files\UVtools\
Executable: C:\Program Files\UVtools\UVtools.exe
Loaded file: 4button_yes_frame.ctb [Version: 4] [Class: CTBEncryptedFile]

Printer and Slicer

Description of the bug

Opening pixel arithmetic dialog resets the layer slider to layer 1. Therefore options for 'current layer' in the dialog are meaningless. Easy enough to manually enter the layer number if you noticed before opening the dialog; so this is not a critical bug that stops the program from doing its job. Low priority.

How to reproduce

  1. Open a file - a .ctb in this example
  2. Scroll through layers to find the end of the range to be affected by the next operation. 88 in this example
  3. Snag_22dad637
  4. Tools | Pixel Arithmetic • Here's the bug. The layer slider resets to layer 1 Snag_22db4992

Files

No response

sn4k3 commented 4 months ago

That's because you have a profile set, when you set and select a profile it will load the layer range saved on profile and change to the first layer in range to preview the starting layer. When you open the dialog without a profile (defaults) it does not change current layer.

If you want that not to happen, you must save the profile with all layers selected. That way it will not change range when loading the profile.

tlhintoq commented 4 months ago

Ok. Thanks.