[Libreoffice-bugs] [Bug 127992] New: Cairo backend does not return GetPixel() correctly

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Oct 6 22:55:33 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=127992

            Bug ID: 127992
           Summary: Cairo backend does not return GetPixel() correctly
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: chris.sherlock79 at gmail.com

Description:
On systems that use Cairo as the VCL backend, the following occurs:

VirtualDevice aRenderContext;
aRenderContext.DrawPixel(Point(8, 1), COL_GREEN);
aRenderContext.GetPixel(Point(8, 1)));

Last line returns 000000ff! This is wrong

https://github.com/chrissherlock/libreoffice-experimental/blob/pixelbug/vcl/qa/cppunit/outdev/PixelTest.cxx

Steps to Reproduce:
1. Cherry pick my commit on github:

https://github.com/chrissherlock/libreoffice-experimental/commit/515c1b3e3ddf1a06028982b5741350dfeedc010f

2. Run make CppunitTest_PixelTest

Actual Results:
/home/chris/repos/libreoffice-latest/vcl/qa/cppunit/outdev/PixelTest.cxx:35:PixelTest::testPixel
equality assertion failed
- Expected: c[00800000]
- Actual  : c[000000ff]

PixelTest::testPixel finished in: 21ms
PixelTest.cxx:35:Assertion
Test name: PixelTest::testPixel
equality assertion failed
- Expected: c[00800000]
- Actual  : c[000000ff]

Failures !!!
Run: 1   Failure total: 1   Failures: 1   Errors: 0

Error: a unit test failed, please do one of:

make CppunitTest_PixelTest CPPUNITTRACE="gdb --args"
    # for interactive debugging on Linux
make CppunitTest_PixelTest VALGRIND=memcheck
    # for memory checking
make CppunitTest_PixelTest DEBUGCPPUNIT=TRUE
    # for exception catching


Expected Results:
Should be returning 00800000 (COL_GREEN). 


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191006/0e3c724f/attachment.html>


More information about the Libreoffice-bugs mailing list