ID 487198 - Running the mari.Channel.resize() method breaks the current History Macro block

Follow

Problem summary
Running the mari.Channel.resize() method breaks the current History Macro block

Customer reported version
Mari 4.7v4

Customer reported platform
n/a

Steps to reproduce

1) Open any Project 

2) Create a Channel

3) Run the following snippet in the Python Console:

mari.current.channel().resize(mari.ImageSet.SIZE_512) # set size to 512
mari.history.startMacro('Test Macro')
mari.current.channel().resize(mari.ImageSet.SIZE_1024) # resize to 1024
mari.history.stopMacro()

Expected behaviour
The Channel should be resized to 1024*1024 and the Macro should stop recording history without error

Actual behaviour
The Channel is resized, but an error is thrown for mari.history.stopMacro()
Traceback (most recent call last):
File "<string>", line 4, in <module>
RuntimeError: No macro is currently active
Workaround
Unknown.

Reproduced by support
This bug has been reproduced in:
Mari 4.7v4 - Windows 10 - CentOS 7.7
Mari 4.7v1 - Windows 10 - CentOS 7.7 - regression

Unable to reproduce bug in:
Mari 4.6v4 - Windows 10 - CentOS 7.7

Earliest version tested
Mari 4.6v4 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why