diff options
-rw-r--r-- | src/gui/math3d/qmatrix4x4.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/math3d/qmatrix4x4.cpp b/src/gui/math3d/qmatrix4x4.cpp index 2f7931d099..a727d6d222 100644 --- a/src/gui/math3d/qmatrix4x4.cpp +++ b/src/gui/math3d/qmatrix4x4.cpp @@ -2002,8 +2002,7 @@ QDebug operator<<(QDebug dbg, const QMatrix4x4 &m) bits += "Rotation,"; if ((m.flagBits & QMatrix4x4::Perspective) != 0) bits += "Perspective,"; - if (bits.size() > 0) - bits = bits.left(bits.size() - 1); + bits.chop(1); } // Output in row-major order because it is more human-readable. |