forked from qt-creator/qt-creator
The size of the image to be rendered for the FormEditor is computed from the bounding box enclosing the items within the scene. There is a size limit, when reached the size was reset to (0,0) leading to an empty FormEditor image. This is now fixed by returning the bounding box of the root item in case this limit is reached. Change-Id: I58366610da2e90c34aea6117e225765ff4b3288b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>