summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-20 09:40:34 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-25 13:19:25 +0000
commitd9ac7def8ba320853e8865535a7a14f9af77521e (patch)
tree4aef3ff57b2208fd01633f838c83afe727c26544 /filter
parent102196f06400864ef49af961352b5c285ee1f3ab (diff)
Convert BMP_FORMAT to scoped enum
Change-Id: I751ab762b6e6f961e9e73a8a2ca92a3f5a5eb1c8 Reviewed-on: https://gerrit.libreoffice.org/25189 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/egif/egif.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/egif/egif.cxx b/filter/source/graphicfilter/egif/egif.cxx
index 9c90c0f0f244..8e26156e0f24 100644
--- a/filter/source/graphicfilter/egif/egif.cxx
+++ b/filter/source/graphicfilter/egif/egif.cxx
@@ -467,8 +467,7 @@ void GIFWriter::WriteAccess()
const long nWidth = m_pAcc->Width();
const long nHeight = m_pAcc->Height();
std::unique_ptr<sal_uInt8[]> pBuffer;
- const sal_uLong nFormat = m_pAcc->GetScanlineFormat();
- bool bNative = ( BMP_FORMAT_8BIT_PAL == nFormat );
+ bool bNative = m_pAcc->GetScanlineFormat() == ScanlineFormat::N8BitPal;
if( !bNative )
pBuffer.reset(new sal_uInt8[ nWidth ]);