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,15 @@ //if tiling horizontally if (m_border == FrameSvg::TopBorder || m_border == FrameSvg::BottomBorder || m_border == FrameSvg::NoBorder) { - textureRect.setWidth(nodeRect.width() / m_elementNativeSize.width()); + // integer value, for full sample copies, stretching as needed + // cmp. CSS3's border-image-repeat: "round" + 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()); + // integer value, for full sample copies, stretching as needed + // cmp. CSS3's border-image-repeat: "round" + textureRect.setHeight(qMax(1, nodeRect.height() / m_elementNativeSize.height())); } } else if (m_fitMode == Stretch) { QString prefix = m_frameSvg->frameSvg()->actualPrefix();