Commit af511cc8 authored by Tomi Korpipää's avatar Tomi Korpipää Committed by Pasi Keränen
Browse files

Allow zero-sized canvas.


Change-Id: I8eed6f21102cd1f7d879416fa6ef992d8f678012
Task-number: QTBUG-45216
Reviewed-by: default avatarPasi Keränen <pasi.keranen@digia.com>
Showing with 2 additions and 2 deletions
......@@ -618,8 +618,8 @@ QSGNode *Canvas::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)
<< " size:" << m_initializedSize
<< " devicePixelRatio:" << m_devicePixelRatio;
if (m_runningInDesigner
|| m_initializedSize.width() <= 0
|| m_initializedSize.height() <= 0
|| m_initializedSize.width() < 0
|| m_initializedSize.height() < 0
|| !window()) {
delete oldNode;
qCDebug(canvas3drendering).nospace() << "Canvas3D::" << __FUNCTION__
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment