Fix crash.
This commit is contained in:
parent
715442508d
commit
cbef79733d
|
@ -92,12 +92,11 @@ auto VBackgroundSVGItem::Renderer() const -> QSvgRenderer *
|
||||||
{
|
{
|
||||||
if (Stale())
|
if (Stale())
|
||||||
{
|
{
|
||||||
m_renderer->load(VBackgroundPatternImage::brokenImage);
|
|
||||||
|
|
||||||
VBackgroundPatternImage image = Image();
|
VBackgroundPatternImage image = Image();
|
||||||
if (not image.IsValid())
|
if (not image.IsValid())
|
||||||
{
|
{
|
||||||
MakeFresh();
|
MakeFresh();
|
||||||
|
m_renderer->load(VBackgroundPatternImage::brokenImage);
|
||||||
return m_renderer;
|
return m_renderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user