Bug 126922 - Images anchored to hidden Calc rows reappear in wrong place when saved and loaded in XLSX
Summary: Images anchored to hidden Calc rows reappear in wrong place when saved and lo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: XLSX-Images
  Show dependency treegraph
 
Reported: 2019-08-14 12:01 UTC by Chris Shaw
Modified: 2022-12-31 03:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
ODS file with embedded image, anchored to hidden row (31.39 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-08-15 10:20 UTC, Chris Shaw
Details
XLSX file with embedded image, anchored to hidden row (28.26 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2019-08-15 10:20 UTC, Chris Shaw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Shaw 2019-08-14 12:01:14 UTC
Description:
If an image is anchored to a cell in LibreOffice, and that row is hidden, the image disappears as well. But if that file is then saves as XLSX and reloaded, the image will reappear, but anchored to the first visible row below where it was

Steps to Reproduce:
1. Insert->Image into A1
2. Ensure the image is anchored "To Cell"
3. Hide row 1
4. Save the sheet as XLSX
5. Close and reload the sheet

Actual Results:
The image will be visible, anchored to A2

Expected Results:
The image should be hidden, and when row A is shown, it should appear and be anchored to A1


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Works fine if the file is saved as ODS
Comment 1 Durgapriyanka 2019-08-14 21:34:44 UTC Comment hidden (obsolete)
Comment 2 Chris Shaw 2019-08-15 10:20:00 UTC
Created attachment 153404 [details]
ODS file with embedded image, anchored to hidden row
Comment 3 Chris Shaw 2019-08-15 10:20:23 UTC
Created attachment 153405 [details]
XLSX file with embedded image, anchored to hidden row
Comment 4 Chris Shaw 2019-08-15 10:24:53 UTC
Interesting. I can reproduce in

Version: 6.3.0.4 (x64)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded

and

Version: 6.2.6.2
Build ID: 684e730861356e74889dfe6dbddd3562aae2e6ad
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-US
Calc: threaded

I've attached 2 files, both saved out of 6.3.0.4 (x64) which should be identical.
The ODS loads correctly, with the image still hidden and anchored to A1
The XLSX loads, but with the image visible and anchored to A2

(In reply to Durgapriyanka from comment #1)
> Thank you for reporting the bug.I cannot reproduce the bug in
> 
> Version: 6.3.0.0.alpha0+
> Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87
> CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
> TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04
> Locale: en-US (en_US); UI-Language: en-US
> Calc: threaded
> 
> and
> 
> LibreOffice 3.3.0 
> OOO330m19 (Build:6)
> tag libreoffice-3.3.0.4
Comment 5 IM 2019-09-08 17:26:56 UTC
Thank you for reporting the bug. I can confirm that the bug is present in:

Version: 6.4.0.0.alpha0+ (x86)
Build ID: 5c30c20101f72d973ff28c228f755e635cad14d5
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: pl-PL (pl_PL); UI-Language: en-US
Calc: threaded

Version: 6.3.0.4 (x64)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: pl-PL (pl_PL); UI-Language: en-US
Calc: threaded
Comment 6 Regina Henschel 2020-11-11 22:00:03 UTC
I see the error still in Version: 7.1.0.0.alpha1+ (x64)
Build ID: a689cf1672e89cb78fbcfa14c505850927e71f58
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: default; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL

It seems, that the row value of the start cell is wrong on export to xlsx.
Comment 7 QA Administrators 2022-12-31 03:19:35 UTC
Dear Chris Shaw,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug