summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-08 12:30:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-09 21:05:42 +0200
commit19e37a2c8097ee4878a593cad4ce01d9fc5b24fb (patch)
tree10b91b5d87677448ec4e42c65949d813c37d65af /include
parentf77524954702f52fe3cd3f40edac539f6a7170dc (diff)
tdf#112939 Color on drop-down color chooser is always black
regression from commit 404630c6052919c1a0b5dab405084c2a39fc2f5c simplify Bitmap operator==/IsEqual (stage1) Change-Id: Ifabbfb28e0ccbe28b19db7f2c50e6d6f55569f9a Reviewed-on: https://gerrit.libreoffice.org/43239 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/bitmap.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index e0d92edfd462..b844807d7d48 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -227,6 +227,8 @@ public:
inline bool operator!() const;
bool operator==( const Bitmap& rBitmap ) const;
bool operator!=( const Bitmap& rBitmap ) const { return !operator==(rBitmap); }
+ // only compares if we are using the same internal copy-on-write Impl class
+ bool ShallowEquals( const Bitmap& rBitmap ) const { return mxImpBmp == rBitmap.mxImpBmp; }
inline bool IsEmpty() const;
void SetEmpty();