Commit c47b2aed authored by Christiaan Janssen's avatar Christiaan Janssen

QmlProfiler: fix Context2D error when resizing

Change-Id: I9de22ea823b35bfd1893cf1388dfd82d332e275d
Reviewed-on: http://codereview.qt.nokia.com/1358Reviewed-by: default avatarAurindam Jana <aurindam.jana@nokia.com>
parent 83837bae
......@@ -941,6 +941,8 @@ void Context2D::beginPainting()
return;
if (m_pixmap.width() != m_width || m_pixmap.height() != m_height) {
if (m_painter.isActive())
m_painter.end();
m_pixmap = QPixmap(m_width, m_height);
m_pixmap.fill(parent()->property("color").value<QColor>());
}
......
Markdown is supported
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