[Libreoffice-commits] core.git: cppcanvas/qa

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Mon May 13 20:49:29 UTC 2019


 cppcanvas/qa/extras/emfplus/emfplus.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e748bd232b06604999daaf09fa8d209afa4e03f7
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Mon May 13 21:12:41 2019 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Mon May 13 22:48:33 2019 +0200

    Fix emfplus.cxx cppcanvas/qa
    
    /home/julien/lo/libreoffice/cppcanvas/qa/extras/emfplus/emfplus.cxx: In member function ‘void testFdo77229::TestBody()’:
    /home/julien/lo/libreoffice/cppcanvas/qa/extras/emfplus/emfplus.cxx:79:46: error: ‘class BitmapColor’ has no member named ‘GetColor’; did you mean ‘getBColor’?
         Color aColor(pAccess->GetPixel(142, 140).GetColor());
                                                  ^~~~~~~~
                                                  getBColor
    
    Change-Id: I7db2e678ddfadcbd55b3cb87613eeecb79d12ad5
    Reviewed-on: https://gerrit.libreoffice.org/72253
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
    Tested-by: Jenkins

diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx
index b684d9ccee9a..13246ee24cec 100644
--- a/cppcanvas/qa/extras/emfplus/emfplus.cxx
+++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx
@@ -76,7 +76,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFdo77229)
     Bitmap aBitmap = load("fdo77229.emf");
     Bitmap::ScopedReadAccess pAccess(aBitmap);
     // The green star was missing.
-    Color aColor(pAccess->GetPixel(142, 140).GetColor());
+    Color aColor(pAccess->GetPixel(142, 140));
     CPPUNIT_ASSERT_EQUAL(sal_uInt8(0), aColor.GetRed());
     CPPUNIT_ASSERT_EQUAL(sal_uInt8(0), aColor.GetBlue());
     CPPUNIT_ASSERT(aColor.GetGreen() == 0xfe || aColor.GetGreen() == 0xff);


More information about the Libreoffice-commits mailing list