diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/svm/SvmReader.cxx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx index 633be2a96105..1e234669610a 100644 --- a/vcl/source/filter/svm/SvmReader.cxx +++ b/vcl/source/filter/svm/SvmReader.cxx @@ -299,7 +299,7 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData) return RasterOpHandler(); break; case MetaActionType::Transparent: - pAction = new MetaTransparentAction; + return TransparentHandler(); break; case MetaActionType::FLOATTRANSPARENT: pAction = new MetaFloatTransparentAction; @@ -1296,4 +1296,20 @@ rtl::Reference<MetaAction> SvmReader::RasterOpHandler() return pAction; } + +rtl::Reference<MetaAction> SvmReader::TransparentHandler() +{ + auto pAction = new MetaTransparentAction(); + + VersionCompatRead aCompat(mrStream); + tools::PolyPolygon aPolyPoly; + ReadPolyPolygon(mrStream, aPolyPoly); + sal_uInt16 nTransPercent; + mrStream.ReadUInt16(nTransPercent); + + pAction->SetPolyPolygon(aPolyPoly); + pAction->SetTransparence(nTransPercent); + + return pAction; +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |