[Libreoffice-commits] core.git: emfio/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 5 05:30:29 UTC 2021
emfio/source/reader/wmfreader.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit c76e58ddb62c37a4091b37444939c471f9bab66f
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sat Sep 4 20:27:19 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Sep 5 07:29:56 2021 +0200
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 at yahoo.fr>
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 );
}
More information about the Libreoffice-commits
mailing list