summaryrefslogtreecommitdiff
path: root/cppcanvas/qa/extras/emfplus
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2018-01-21 04:48:50 +1100
committerStephan Bergmann <sbergman@redhat.com>2018-02-05 09:00:54 +0100
commit01e470f0ab49e458c57b0f28636a517b2bfb1b4a (patch)
treee153e55125b3d5682e60425b80568c5e03a3695a /cppcanvas/qa/extras/emfplus
parent79517c0471aff4abf336bd81834bd28732dad67f (diff)
vcl: remove BitmapColor Color() operator
BitmapColor has a Color() operator. However, this is confusing and tends to hide that the two classes aren't the same. I have converted this to GetColor(). Change-Id: I0be2dcb3fc420e7be9c8d04330e7a3fe69a5412a Reviewed-on: https://gerrit.libreoffice.org/48245 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppcanvas/qa/extras/emfplus')
-rw-r--r--cppcanvas/qa/extras/emfplus/emfplus.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx
index b5a32b1fca94..fbc55d2f2181 100644
--- a/cppcanvas/qa/extras/emfplus/emfplus.cxx
+++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx
@@ -80,7 +80,7 @@ void Test::testFdo77229()
Bitmap aBitmap = load("fdo77229.emf");
Bitmap::ScopedReadAccess pAccess(aBitmap);
// The green star was missing.
- Color aColor(pAccess->GetPixel(142, 140));
+ Color aColor(pAccess->GetPixel(142, 140).GetColor());
CPPUNIT_ASSERT_EQUAL(sal_uInt8(0), aColor.GetRed());
CPPUNIT_ASSERT_EQUAL(sal_uInt8(0), aColor.GetBlue());
CPPUNIT_ASSERT(aColor.GetGreen() == 0xfe || aColor.GetGreen() == 0xff);