QmlProfiler: fix Context2D error when resizing

Change-Id: I9de22ea823b35bfd1893cf1388dfd82d332e275d
Reviewed-on: http://codereview.qt.nokia.com/1358
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Christiaan Janssen
2011-07-08 11:43:19 +02:00
parent 83837baeb4
commit c47b2aeda4

View File

@@ -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>());
}