Fix crash.

This commit is contained in:
Roman Telezhynskyi 2022-02-14 13:26:31 +02:00
parent 715442508d
commit cbef79733d

View File

@ -92,12 +92,11 @@ auto VBackgroundSVGItem::Renderer() const -> QSvgRenderer *
{
if (Stale())
{
m_renderer->load(VBackgroundPatternImage::brokenImage);
VBackgroundPatternImage image = Image();
if (not image.IsValid())
{
MakeFresh();
m_renderer->load(VBackgroundPatternImage::brokenImage);
return m_renderer;
}