Diffusion Krita 1766363692e5

Fix crash in Overview docker in case of empty canvas

Authored by tymond on Jul 9 2019, 7:15 PM.

Description

Fix crash in Overview docker in case of empty canvas

Before this crash, Overview docker would use its canvas in case
of rotation without checking if the canvas exist. This patch
fixes it by adding additional checks and returning from the function
in case of empty canvas.

Supposedly "it happens because when the canvas is deleted,
canvasOffsetXChanged is emitted".

Details