vcl/source/animate/Animation.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
New commits: commit c1f04103a0bbe93a4c67cde50dda7a8eae2f955f Author: Adrien Ollier <adr.oll...@hotmail.fr> AuthorDate: Mon May 6 22:58:27 2019 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Tue May 7 10:24:50 2019 +0200 inverts the tests for performance optimization Change-Id: Ib65ec7fd957ab19c703d31da9eb74390126d2d04 Signed-off-by: Adrien Ollier <adr.oll...@hotmail.fr> Reviewed-on: https://gerrit.libreoffice.org/71881 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/vcl/source/animate/Animation.cxx b/vcl/source/animate/Animation.cxx index 3aeeadc649a8..7885343b7fa8 100644 --- a/vcl/source/animate/Animation.cxx +++ b/vcl/source/animate/Animation.cxx @@ -115,13 +115,14 @@ bool Animation::IsTransparent() const // as the application (?) does not invalidate on non-transparent // graphics due to performance reasons. - return std::any_of(maList.begin(), maList.end(), - [&aRect](const std::unique_ptr<AnimationBitmap>& pAnim) -> bool { - return pAnim->meDisposal == Disposal::Back - && tools::Rectangle{ pAnim->maPositionPixel, pAnim->maSizePixel } - != aRect; - }) - || maBitmapEx.IsTransparent(); + return maBitmapEx.IsTransparent() + || std::any_of(maList.begin(), maList.end(), + [&aRect](const std::unique_ptr<AnimationBitmap>& pAnim) -> bool { + return pAnim->meDisposal == Disposal::Back + && tools::Rectangle{ pAnim->maPositionPixel, + pAnim->maSizePixel } + != aRect; + }); } sal_uLong Animation::GetSizeBytes() const _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits