diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2021-06-14 12:50:19 +0200 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2021-06-17 18:24:57 +0200 |
commit | befa3f75fd7bf5ef35741d099ab18e94f10e4e1d (patch) | |
tree | 64a8b70f2d017f5080f494377c9e8435bf39a182 /emfio | |
parent | 86df3a49f339a38d839f2ddedafa862031ca759d (diff) |
EMF+ WMF Update the variable names and add additional TODO warnings
Change-Id: I78b05fe3c293494195bdd37c3030147b1f21228e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117148
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/wmfreader.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index 9ddb674b7c05..4f5606f66aae 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -997,12 +997,14 @@ namespace emfio case W_META_CREATEBRUSH: { + SAL_WARN( "emfio", "TODO: Not implemented. Please fill the bug report" ); CreateObject(std::make_unique<WinMtfFillStyle>( COL_WHITE, false )); } break; case W_META_CREATEPATTERNBRUSH: { + SAL_WARN( "emfio", "TODO: Not implemented. Please fill the bug report" ); CreateObject(std::make_unique<WinMtfFillStyle>( COL_WHITE, false )); } break; @@ -1086,9 +1088,10 @@ namespace emfio case W_META_CREATEBRUSHINDIRECT: { - sal_uInt16 nStyle = 0; - mpInputStream->ReadUInt16( nStyle ); - CreateObject(std::make_unique<WinMtfFillStyle>( ReadColor(), ( nStyle == BS_HOLLOW ) )); + sal_uInt16 nBrushStyle = 0; + mpInputStream->ReadUInt16( nBrushStyle ); + CreateObject(std::make_unique<WinMtfFillStyle>( ReadColor(), ( nBrushStyle == BS_NULL ) )); + SAL_WARN_IF( (nBrushStyle != BS_SOLID) && (nBrushStyle != BS_NULL), "emfio", "TODO: Brush style not implemented. Please fill the bug report" ); } break; @@ -1159,6 +1162,7 @@ namespace emfio case W_META_EXCLUDECLIPRECT : { + SAL_WARN( "emfio", "TODO: Not working correctly. Please fill the bug report" ); ExcludeClipRect( ReadRectangle() ); } break; |