diff --git a/src/declarativeimports/core/framesvgitem.cpp b/src/declarativeimports/core/framesvgitem.cpp --- a/src/declarativeimports/core/framesvgitem.cpp +++ b/src/declarativeimports/core/framesvgitem.cpp @@ -145,11 +145,11 @@ //if tiling horizontally if (m_border == FrameSvg::TopBorder || m_border == FrameSvg::BottomBorder || m_border == FrameSvg::NoBorder) { - textureRect.setWidth(nodeRect.width() / m_elementNativeSize.width()); + textureRect.setWidth(qMax(1, nodeRect.width() / m_elementNativeSize.width())); } //if tiling vertically if (m_border == FrameSvg::LeftBorder || m_border == FrameSvg::RightBorder || m_border == FrameSvg::NoBorder) { - textureRect.setHeight(nodeRect.height() / m_elementNativeSize.height()); + textureRect.setHeight(qMax(1, nodeRect.height() / m_elementNativeSize.height())); } } else if (m_fitMode == Stretch) { QString prefix = m_frameSvg->frameSvg()->actualPrefix();