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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Oct 20 15:04:51 UTC 2019


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

Caolán McNamara <caolanm at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTABUG
             Status|NEW                         |RESOLVED

--- Comment #5 from Caolán McNamara <caolanm at redhat.com> ---
...

    VirtualDevice aRenderContext;

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

aRenderContext is 0x0 so you are drawing outside the bounds of the device.
Change it to ...

    VirtualDevice aRenderContext;
    aRenderContext.SetOutputSizePixel(Size(10,10));
    aRenderContext.DrawPixel(Point(8, 1), COL_GREEN);

and it will work

-- 
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/20191020/4464d1f9/attachment.html>


More information about the Libreoffice-bugs mailing list