From e1cf42ba8c1628f6c06cbb6acb78b0ac81521c8f Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 20 May 2019 13:24:34 +0900 Subject: [PATCH] vector: fix a compile error of strict fallthrough case check. --- src/vector/vmatrix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vector/vmatrix.cpp b/src/vector/vmatrix.cpp index f2dc2570b6..eaecabc174 100644 --- a/src/vector/vmatrix.cpp +++ b/src/vector/vmatrix.cpp @@ -98,8 +98,8 @@ VMatrix::MatrixType VMatrix::type() const case MatrixType::Project: if (!vIsZero(m13) || !vIsZero(m23) || !vIsZero(m33 - 1)) { mType = MatrixType::Project; - break; } + break; case MatrixType::Shear: case MatrixType::Rotate: if (!vIsZero(m12) || !vIsZero(m21)) { @@ -108,18 +108,18 @@ VMatrix::MatrixType VMatrix::type() const mType = MatrixType::Rotate; else mType = MatrixType::Shear; - break; } + break; case MatrixType::Scale: if (!vIsZero(m11 - 1) || !vIsZero(m22 - 1)) { mType = MatrixType::Scale; - break; } + break; case MatrixType::Translate: if (!vIsZero(mtx) || !vIsZero(mty)) { mType = MatrixType::Translate; - break; } + break; case MatrixType::None: mType = MatrixType::None; break;