[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 12 11:34:30 UTC 2021
vcl/source/gdi/print2.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 0b527b7fe7fdceb04e9b35b345b58c72d9ddc656
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Apr 12 11:27:06 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Apr 12 13:33:44 2021 +0200
improve scoping
Change-Id: I3f081312cbfccce4982b8df7538d7d64150a0d11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113977
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index 36e4f4285e43..285818e7284b 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -693,14 +693,12 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
aMapModeVDev->mnDPIY = mnDPIY;
aMapModeVDev->EnableOutput(false);
- int nLastBgAction, nActionNum;
-
// weed out page-filling background objects (if they are
// uniformly coloured). Keeping them outside the other
// connected components often prevents whole-page bitmap
// generation.
bool bStillBackground=true; // true until first non-bg action
- nActionNum=0; nLastBgAction=-1;
+ int nActionNum = 0, nLastBgAction = -1;
pCurrAct=const_cast<GDIMetaFile&>(rInMtf).FirstAction();
if( rBackground != COL_TRANSPARENT )
{
More information about the Libreoffice-commits
mailing list