diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-09-04 20:27:19 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-09-05 07:29:56 +0200 |
commit | c76e58ddb62c37a4091b37444939c471f9bab66f (patch) | |
tree | 8dc7e9e1f0551ea1f7938848db778901becbbaf1 /emfio/source/reader/wmfreader.cxx | |
parent | 180255b8fea029ac4a62b2e211afda8e52e053c1 (diff) |
Simplify a bit nOldROP management (emfio/wmfreader)
Change-Id: Ia50f9def88e8435fb5ce3267cbd3fdfcaa72ef4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121646
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'emfio/source/reader/wmfreader.cxx')
-rw-r--r-- | emfio/source/reader/wmfreader.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index 7f664aaa63ec..8799fab9898e 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -1170,10 +1170,9 @@ namespace emfio case W_META_PATBLT: { sal_uInt32 nROP = 0; - WMFRasterOp nOldROP = WMFRasterOp::NONE; mpInputStream->ReadUInt32( nROP ); Size aSize = ReadYXExt(); - nOldROP = SetRasterOp( static_cast<WMFRasterOp>(nROP) ); + WMFRasterOp nOldROP = SetRasterOp( static_cast<WMFRasterOp>(nROP) ); DrawRect( tools::Rectangle( ReadYX(), aSize ), false ); SetRasterOp( nOldROP ); } |