forked from qt-creator/qt-creator
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:
@@ -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>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user