summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-12-18 11:59:25 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-18 21:20:03 +0100
commit29c5b99832d731071dd201e88d6631c805efe91a (patch)
treee72bbe5ad470a9cd665c8cb2277ba359d4a833c4 /vcl/inc
parent94e8de1652370ec7d3a09a76b082ba7c77f1b278 (diff)
fix incorrect array access after a removed enum (tdf#138973)
c521e614359d236405754134a54e8a05bdb1c44c removed some enum values but didn't remove them from the conversion array. Change-Id: Idf4837c5929feefb11b400fcd1036370534ed26a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107961 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/salbmp.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/salbmp.hxx b/vcl/inc/salbmp.hxx
index 943f9d6b2986..adbf70e5c17f 100644
--- a/vcl/inc/salbmp.hxx
+++ b/vcl/inc/salbmp.hxx
@@ -121,7 +121,8 @@ protected:
{
A8,
RGBA,
- BGRA
+ BGRA,
+ LAST = BGRA
};
static std::unique_ptr< sal_uInt8[] > convertDataBitCount( const sal_uInt8* src,
int width, int height, int bitCount, int bytesPerRow, const BitmapPalette& palette,