xcb: Increment iterator inside bgr888 region loop

Amends 9c1d3bc253.

Change-Id: I912096794d274617e5b290dfb42685088cd49b23
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Błażej Szczygieł 2017-06-19 22:28:37 +02:00
parent 198b67d14b
commit 9c9382a85f

View File

@ -561,7 +561,7 @@ void QXcbBackingStore::endPaint()
return;
QPainter p(m_image->image());
while (it != end) {
const QRect rect = *it;
const QRect rect = *(it++);
p.drawImage(rect.topLeft(), m_rgbImage.copy(rect).rgbSwapped());
}
}