diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-05-24 22:36:23 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-05-24 23:33:14 +0200 |
commit | 7f3d3e74fdcffb55da7fd7f55ac4c1f85d35745c (patch) | |
tree | b98d3d092e1c30fcbc6ab32e1aa3a666c0648d6a /vcl | |
parent | 935f6199d030fb77ce799c5193ad3d8a927bc3cf (diff) |
tdf#125472: fix RemoveTransparenciesFromMetaFile(vcl/gdi)
Regression from:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=3ff0c23b54ba4e7a534693ba25a3ffb27d1c18e1
+ some slight simplification
Change-Id: Ifa9d4d7d27e80217f778f3625ef4437828600dd3
Reviewed-on: https://gerrit.libreoffice.org/72922
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/print2.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index 1ca7014778f5..2aec6add9634 100644 --- a/vcl/source/gdi/print2.cxx +++ b/vcl/source/gdi/print2.cxx @@ -917,8 +917,6 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, bTreatSpecial = true; } - ConnectedComponentsList::iterator aCurrCC; - const ConnectedComponentsList::iterator aLastCC( aCCList.end() ); bool bSomeComponentsChanged; // now, this is unfortunate: since changing anyone of @@ -934,7 +932,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, bSomeComponentsChanged = false; // iterate over all current members of aCCList - for( aCurrCC=aCCList.begin(); aCurrCC != aLastCC; ) + for( auto aCurrCC=aCCList.begin(); aCurrCC != aCCList.end(); ) { // first check if current element's bounds are // empty. This ensures that empty actions are not |