Very annoying error/glitch

Hi,

I today encountered a very annoying problem with the screen editor.
I worked on a very complex screen with many groupboxes. Partially I edited it in the XML tab because I needed to move multiple fields from one box to another and between gridlayouts.

The problem was that the target gridlayout has defined fewer rows than i pasted to in it. When i switched back to layout view I got an error message that the gridlayout is not good because out o bounds.
I cannot switch back to XML view nor cannot edit a grid, and all of my edits in the xml was cleared and I got back an empty screen, in the IDE.
Pooof 3 hour work.
Can it be avoided somehow?
If the editor sense that the xml is not good, please allow us to repair the text.

Regards

Hello.

Thank you for reporting the problem. We have created a YouTrack issue, see the link on the right.

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/STUDIO-3173