summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-16 10:24:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-16 11:51:48 +0100
commitb0c68499ab36d2a1bdf6f1bc7d4cd259b99700e7 (patch)
treee86c60cafa1082fa7aab919adafc904d7276de3c /vcl
parent15b886f460919ea3dce425a621dc017c2992a96b (diff)
tdf#158224 Cannot convert bitmap to polygons
regression from commit a76a135c9e9bdecd38970e293e72eeeeca000d27 Author: Noel Grandin <noelgrandin@gmail.com> Date: Tue Jan 3 20:14:21 2023 +0200 flatten some vcl code Change-Id: Ibb2a059b283dc2e3bf3fecbf24ff71332a204d5d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159495 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
index 38e2c76794b0..ec4004879651 100644
--- a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
+++ b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
@@ -19,7 +19,7 @@ BitmapEx BitmapSimpleColorQuantizationFilter::execute(BitmapEx const& aBitmapEx)
{
Bitmap aBitmap = aBitmapEx.GetBitmap();
- if (vcl::numberOfColors(aBitmap.getPixelFormat()) > sal_Int64(mnNewColorCount))
+ if (vcl::numberOfColors(aBitmap.getPixelFormat()) <= sal_Int64(mnNewColorCount))
return BitmapEx(aBitmap);
Bitmap aNewBmp;