mask editor only works after first resize event

Newly constructed mask items are not shown. They only appear after the main window has been resized for the first time.

This bug has emerged quite recently.