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

            Bug ID: 156839
           Summary: Printing from macro creates empty page instead of the
                    second sheet
           Product: LibreOffice
           Version: 4.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisected, bisected, regression
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 189070
  --> https://bugs.documentfoundation.org/attachment.cgi?id=189070&action=edit
Example file

Attached user made file contains two sheets and a macro used to set print
properties (print range, print settings) and to print the whole spreadsheet.

When the macro is run, the resulting print contains an empty page in place of
the second sheet.

1. Open attached file
2. Press the Print button on the first sheet
-> Second sheet is not printed, only an empty page.
This is "fixed" if the Tools - Options - Calc - Print - Print only selected
sheets is disabled.

The problematic behavior seems to happen only with the macro, not from the
Print dialog or from the CLI --convert-to pdf call.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e60ef8651cfb30335471d1622e58c13eebc7d58b
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

Seems to have started in 4.4. Before that the first sheet was exported.
Bibisect range from windows-4.4 repo:
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=e1386e32a85eb5c6b4294a8ca3e4461b92707fc3..e62764108a1832e746f68768c29eaa90606903a7

of which, this seems suspicious:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=0b793116deaf35ce67245c1106e5ed5a722c7560

author  David Tardon <[email protected]>       2014-06-19 16:57:03 +0200
committer       David Tardon <[email protected]>       2014-06-19 17:14:48
+0200
commit  0b793116deaf35ce67245c1106e5ed5a722c7560 (patch)

rhbz#1111216 allow to export an empty sheet to PDF

https://bugzilla.redhat.com/show_bug.cgi?id=1111216

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to