Bug 124681 - Sheet name field in footer/header refers to the original sheet after you copy it (only in PDF export)
Summary: Sheet name field in footer/header refers to the original sheet after you copy...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-11 10:12 UTC by Alexander Polkhovskiy
Modified: 2019-04-11 10:28 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Polkhovskiy 2019-04-11 10:12:34 UTC
Description:
After you copy the sheet, the "Sheet name" field in header/footer will still show the original sheet name, not the copied one.

Steps to Reproduce:
1. Make sure a field "Sheet Name" is used in the current sheet's footer or header. The default sheet uses the field in its header.
2. Copy the sheet.
3. Export the new list to PDF.

Actual Results:
You'll see the name of the 1st original sheet (by default it is "Sheet1") in the PDF.

Expected Results:
You should see the name of the 2nd sheet - the copy of the 1st original sheet (by default it would be "Sheet1_2") in the PDF.


Reproducible: Always


User Profile Reset: No



Additional Info:
Reproduced in

Version: 6.1.5.2 (x64)
Build ID: 90f8dcf33c87b3705e78202e3df5142b201bd805
CPU threads: 4; OS:Windows 6.3; UI render: default; 
Locale: ru-RU (ru_RU); Calc: CL

Version: 6.3.0.0.alpha0+ (x64)
Build ID: cc9a8c13dad6f3d82a2386554bd6113b486a1752
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-04-03_00:59:49
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

Not sure did it work in previous versions - I've been using print to PDF printer before, it works fine.
Comment 1 Alexander Polkhovskiy 2019-04-11 10:20:11 UTC
Sorry, it was a mistake - everything works fine. I expected the current sheet to be exported (like it is while printing), but the whole document is exported, so I see the 1st sheet on open, not the second.
Sorry again :(