Kaydet (Commit) 3c8b99a3 authored tarafından Michael Meeks's avatar Michael Meeks

IsGreyPalette: belt and braces, empty palettes are grey (apparently)

üst dab309e7
...@@ -207,7 +207,7 @@ public: ...@@ -207,7 +207,7 @@ public:
inline BitmapColor& operator[]( sal_uInt16 nIndex ); inline BitmapColor& operator[]( sal_uInt16 nIndex );
inline sal_uInt16 GetBestIndex( const BitmapColor& rCol ) const; inline sal_uInt16 GetBestIndex( const BitmapColor& rCol ) const;
bool IsGreyPalette() const { return mbIsGrey; } bool IsGreyPalette() const { return !GetEntryCount() || mbIsGrey; }
void SetGreyPalette( bool bGrey ) { mbIsGrey = bGrey; } void SetGreyPalette( bool bGrey ) { mbIsGrey = bGrey; }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment