Add QDebugStateSaver to QVectorPath operator<<
&operator<<(QDebug &, const QVectorPath &) was modifying the QDebug state without restoring it after finishing. Change-Id: I28c377bc99bfeb5a7bc67ca9affa8123f04583df Coverity-Id: 11375 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
a493170a94
commit
28d1d19a52
@ -137,6 +137,7 @@ const QVectorPath &qtVectorPathForPath(const QPainterPath &path)
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
QDebug Q_GUI_EXPORT &operator<<(QDebug &s, const QVectorPath &path)
|
||||
{
|
||||
QDebugStateSaver saver(s);
|
||||
QRectF rf = path.controlPointRect();
|
||||
s << "QVectorPath(size:" << path.elementCount()
|
||||
<< " hints:" << hex << path.hints()
|
||||
|
Loading…
Reference in New Issue
Block a user