summaryrefslogtreecommitdiff
path: root/vcl/source/bitmap/BitmapEx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/bitmap/BitmapEx.cxx')
-rw-r--r--vcl/source/bitmap/BitmapEx.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/bitmap/BitmapEx.cxx b/vcl/source/bitmap/BitmapEx.cxx
index 21b5969c25ec..9f4bd7f47b2f 100644
--- a/vcl/source/bitmap/BitmapEx.cxx
+++ b/vcl/source/bitmap/BitmapEx.cxx
@@ -1354,7 +1354,8 @@ tools::Polygon BitmapEx::GetContour( bool bContourEdgeDetect,
// causes clipping of any shadows or other semi-transparent
// areas in the image. So, instead of testing for fully opaque
// pixels, treat pixels that are not fully transparent as opaque.
- const BitmapColor aTransparent = pAcc->GetBestMatchingColor( COL_ALPHA_TRANSPARENT );
+ // tdf#162062 only apply fix for tdf#161833 if there is a palette
+ const BitmapColor aTransparent = pAcc->GetBestMatchingColor( pAcc->HasPalette() ? COL_ALPHA_TRANSPARENT : COL_ALPHA_OPAQUE );
pPoints1.reset(new Point[ nHeight ]);
pPoints2.reset(new Point[ nHeight ]);