diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-22 11:21:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-01 19:31:07 +0200 |
commit | 153b51da381ba21d46a3d42c939080272818797c (patch) | |
tree | 853b8e18bd4bf036e47966c932586c13cb5791e2 | |
parent | a2977b5bd4b112af33258e471291474a1fe9e10e (diff) |
reduce cost of B2DHomMatrix::isIdentity
often the matrix is still default
Change-Id: Ieacf19c375e9988487047309187fce6b5b8c9561
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139213
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | basegfx/source/matrix/b2dhommatrix.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/matrix/b2dhommatrix.cxx b/basegfx/source/matrix/b2dhommatrix.cxx index c21a4dceeccd..9811304ccccd 100644 --- a/basegfx/source/matrix/b2dhommatrix.cxx +++ b/basegfx/source/matrix/b2dhommatrix.cxx @@ -82,7 +82,7 @@ namespace basegfx bool B2DHomMatrix::isIdentity() const { - return mpImpl->isIdentity(); + return mpImpl.same_object(DEFAULT) || mpImpl->isIdentity(); } void B2DHomMatrix::identity() |