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

            Bug ID: 99359
           Summary: Can't export the current worksheet as a PNG image
           Product: LibreOffice
           Version: 5.1.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

To reproduce:
1. Create two worksheets in LibreOffice Calc.
2. Add some content to both worksheets.
3. Select the second worksheet.
4. Click File > Export, type foo.png, click Save, and click OK.

The resulting file is an image of the first worksheet, when it should be an
image of the second worksheet (which was selected). Checking the box to export
only the currently selected cells makes no difference.

Essentially, I'm asking for PNG export to work the same as exporting a PDF of
the current page.

The problem is centered around DocumentToGraphicRenderer::getCurrentPageWriter,
which always returns 1 for spreadsheets regardless of which worksheet is
selected. See:

https://cgit.freedesktop.org/libreoffice/core/tree/filter/source/graphic/GraphicExportFilter.cxx?id=d3bf12ecb743fc0d20e0be0c58ca359301eb705f#n105

https://cgit.freedesktop.org/libreoffice/core/tree/svtools/source/filter/DocumentToGraphicRenderer.cxx?id=d3bf12ecb743fc0d20e0be0c58ca359301eb705f#n148

I finally worked around the problem by copying and pasting cells into GIMP.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to