Fix crash.
This commit is contained in:
parent
715442508d
commit
cbef79733d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user