Strange behavior when switching active layer during transform
GIMP version: 2.10.6
Operating System: Windows 7
Package: official installer
Description of the bug
Sometimes when I'm doing a unified transform on a layer A I accidentally (?) switch to another layer B before completing the transform. In that case the view window shows the layer A being transformed, but pressing Transform actually results in layer B being transformed. This happens with other transform tools as well (rotate, perspective etc.)
Reproduction
Always
Reproduction steps:
- Create another smaller layer on top of background layer (Text layer for example)
- Try to transform the smaller layer, but switch to background layer before pressing Transform
- The screen still shows the smaller layer being transformed
- Press Transform
Expected result:
The smaller layer being transformed as shown on the screen.
Actual result:
The background layer is transformed as if has been resized to the size of the smaller layer and the selected transform being applied. It looks really weird.
Also, if you try to move the transform handles after switching to background layer, it actually resets the transform although the handle always results in "move" operation regardless of what handle was used.