From 16410ae7bef16cd163dc66a8e1524aaa7b9b5c18 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Sat, 5 Oct 2024 22:47:11 +0900 Subject: [PATCH] QPainterPath: reset .nospace() in QDebug operator<<(...) Change-Id: Ic06f376fe01db6d7340fa0e7071b01e00aa8caf9 Reviewed-by: Volker Hilsheimer (cherry picked from commit fb00ecd0a7925f95fa32a7772e9c70149468ee2d) Reviewed-by: Qt Cherry-pick Bot --- src/gui/painting/qpainterpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp index 9dbfa6c4065..e55422a672c 100644 --- a/src/gui/painting/qpainterpath.cpp +++ b/src/gui/painting/qpainterpath.cpp @@ -3362,11 +3362,11 @@ void QPainterPath::computeControlPointRect() const #ifndef QT_NO_DEBUG_STREAM QDebug operator<<(QDebug s, const QPainterPath &p) { + QDebugStateSaver saver(s); s.nospace() << "QPainterPath: Element count=" << p.elementCount() << Qt::endl; const char *types[] = {"MoveTo", "LineTo", "CurveTo", "CurveToData"}; for (int i=0; i " << types[p.elementAt(i).type] << "(x=" << p.elementAt(i).x << ", y=" << p.elementAt(i).y << ')' << Qt::endl; - } return s; }