basegfx/source/matrix/b2dhommatrix.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 153b51da381ba21d46a3d42c939080272818797c
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Aug 22 11:21:50 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Sep 1 19:31:07 2022 +0200

    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.gran...@collabora.co.uk>

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()

Reply via email to