vcl/source/outdev/bitmap.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit bbc20e3ac2defbe0c1a0f320fa2047f84b8d670d Author: Christopher Sherlock <[email protected]> AuthorDate: Thu Aug 14 22:31:34 2025 +1000 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Sep 17 09:28:20 2025 +0200 vcl: remove unnecessary variable Change-Id: I68b1a198c884100c9e9d5d8aeab8952fde533d62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189602 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index 73ff0181eb73..20de6b75b7bf 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -323,11 +323,9 @@ void OutputDevice::DrawImage( const Point& rPos, const Size& rSize, { assert(!is_double_buffered_window()); - bool bIsSizeValid = !rSize.IsEmpty(); - if (!ImplIsRecordLayout()) { - if (bIsSizeValid) + if (!rSize.IsEmpty()) rImage.Draw(this, rPos, nStyle, &rSize); else rImage.Draw(this, rPos, nStyle);
