From d276dcb7ae06c24729e215a84f810df5e7478b96 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Wed, 5 Aug 2020 14:01:40 +0200 Subject: [PATCH] debuf functions improved --- src/nodes/QskVertex.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/nodes/QskVertex.cpp b/src/nodes/QskVertex.cpp index ef173b6c..ff741668 100644 --- a/src/nodes/QskVertex.cpp +++ b/src/nodes/QskVertex.cpp @@ -24,7 +24,6 @@ QDebug operator<<( QDebug debug, Color color ) QDebug operator<<( QDebug debug, ColoredLine line ) { - QDebugStateSaver saver( debug ); qDebug() << qRound( line.p1.x ) << qRound( line.p1.y ) << "->" << qRound( line.p2.x ) << qRound( line.p2.y ); @@ -33,7 +32,6 @@ QDebug operator<<( QDebug debug, ColoredLine line ) QDebug operator<<( QDebug debug, Line line ) { - QDebugStateSaver saver( debug ); qDebug() << qRound( line.p1.x ) << qRound( line.p1.y ) << "->" << qRound( line.p2.x ) << qRound( line.p2.y ); @@ -48,7 +46,11 @@ static inline void qskDebugGeometry( Line* lines, int count ) #ifndef QT_NO_DEBUG_STREAM for ( int i = 0; i < count; i++ ) { - qDebug() << i << ":" << lines[ i ]; + const auto l = lines[i]; + + qDebug() << i << ":" + << qRound( l.p1.x ) << qRound( l.p1.y ) + << "->" << qRound( l.p2.x ) << qRound( l.p2.y ); } #endif }