summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbbackingstore.cpp
diff options
context:
space:
mode:
authorBłażej Szczygieł <spaz16@wp.pl>2017-06-19 22:28:37 +0200
committerBłażej Szczygieł <spaz16@wp.pl>2017-06-28 10:34:20 +0000
commit9c9382a85f53756c3c702ef7a999720ae40be5b9 (patch)
tree70e7789e15f882fa1fded6c1116074ee90c84194 /src/plugins/platforms/xcb/qxcbbackingstore.cpp
parent198b67d14bf3ca76d6bdf8901348da0838cf3b8d (diff)
xcb: Increment iterator inside bgr888 region loop
Amends 9c1d3bc253abd4418f3050d19ec5f05bef3ada97. Change-Id: I912096794d274617e5b290dfb42685088cd49b23 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbbackingstore.cpp')
-rw-r--r--src/plugins/platforms/xcb/qxcbbackingstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbbackingstore.cpp b/src/plugins/platforms/xcb/qxcbbackingstore.cpp
index f095288221..a419caf0fc 100644
--- a/src/plugins/platforms/xcb/qxcbbackingstore.cpp
+++ b/src/plugins/platforms/xcb/qxcbbackingstore.cpp
@@ -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());
}
}