probably need to add mbIsGrey to operator== comparison
diff --git a/vcl/inc/vcl/salbtype.hxx b/vcl/inc/vcl/salbtype.hxx
index 8e238be..41c90e9 100644
--- a/vcl/inc/vcl/salbtype.hxx
+++ b/vcl/inc/vcl/salbtype.hxx
@@ -607,7 +607,7 @@ inline sal_Bool BitmapPalette::operator==( const BitmapPalette& rBitmapPalette )
{
    sal_Bool bRet = sal_False;

    if( rBitmapPalette.mnCount == mnCount )
    if( rBitmapPalette.mnCount == mnCount && rBitmapPalette.mbIsGrey == mbIsGrey )
    {
        bRet = sal_True;