summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp')
-rw-r--r--src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp b/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
index 6bf9d6b050..e2b9f99ba1 100644
--- a/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
+++ b/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
@@ -98,7 +98,11 @@ QPaintDevice *QTraceWindowSurface::paintDevice()
{
if (!buffer) {
buffer = new QPaintBuffer;
+#ifdef Q_WS_QPA
+ buffer->setBoundingRect(QRect(QPoint(), size()));
+#else
buffer->setBoundingRect(geometry());
+#endif
}
return buffer;
}