Add a guard after figuring out the contentRect for a framesvgitem
This commit is contained in:
parent
a1d7863f4f
commit
565b2b6f51
@ -99,6 +99,11 @@ public:
|
|||||||
FrameData* frameData = m_frameSvg->frameData();
|
FrameData* frameData = m_frameSvg->frameData();
|
||||||
|
|
||||||
QRect nodeRect = FrameSvgPrivate::sectionRect(frameData, m_border, frameGeometry);
|
QRect nodeRect = FrameSvgPrivate::sectionRect(frameData, m_border, frameGeometry);
|
||||||
|
|
||||||
|
//ensure we're not passing a weird rectangle to updateTexturedRectGeometry
|
||||||
|
if(!nodeRect.isValid() || nodeRect.isEmpty())
|
||||||
|
nodeRect = QRect();
|
||||||
|
|
||||||
QRectF textureRect = QRectF(0,0,1,1);
|
QRectF textureRect = QRectF(0,0,1,1);
|
||||||
if (m_fitMode == Tile) {
|
if (m_fitMode == Tile) {
|
||||||
if (m_border == FrameSvg::TopBorder || m_border == FrameSvg::BottomBorder || m_border == FrameSvg::NoBorder) {
|
if (m_border == FrameSvg::TopBorder || m_border == FrameSvg::BottomBorder || m_border == FrameSvg::NoBorder) {
|
||||||
|
Loading…
Reference in New Issue
Block a user