Bug 97515 - FILEOPEN XLSX cell backgrounds shift
Summary: FILEOPEN XLSX cell backgrounds shift
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.4.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-02 19:43 UTC by Geza
Modified: 2017-11-11 08:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample xlsx file and two screenshots (141.13 KB, application/zip)
2016-02-02 19:43 UTC, Geza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geza 2016-02-02 19:43:17 UTC
Created attachment 122336 [details]
sample xlsx file and two screenshots

I received an xlsx file. When I opened it in LO, the gray background of the cells were shifted by one row downwards compared to what I get in MS Excel 2013.
I prepared a reduced file to show the situation, please find it in enclosed zip: XLS3.xlsx
I also enlosed screenshots of Excel 2013 on Windows 8.1 and LibreOffice 5.0.4002 on Mac OS X 10.10.5.
Comment 1 m_a_riosv 2016-02-03 02:31:08 UTC
Hi Geza,

seems the issue is with Conditional Formatting, some address are wrong in it opening in LibreOffice.

conditions for multiple ranges seems not well imported.

In the original file:
-<conditionalFormatting sqref="G2:H1048576">
-<cfRule dxfId="0" text="" rank="0" percent="0" bottom="0" equalAverage="0" aboveAverage="0" priority="2" type="expression">
<formula>$B2="x"</formula>
</cfRule>
</conditionalFormatting>
-<conditionalFormatting sqref="F2:I2;F1;F3:J1048576">
-<cfRule dxfId="1" text="" rank="0" percent="0" bottom="0" equalAverage="0" aboveAverage="0" priority="3" type="expression">
<formula>$D1="x"</formula>
</cfRule>
</conditionalFormatting>
-<conditionalFormatting sqref="H2:H1048576">
-<cfRule dxfId="2" text="" rank="0" percent="0" bottom="0" equalAverage="0" aboveAverage="0" priority="4" type="expression">
<formula>$A2="x"</formula>
</cfRule>
</conditionalFormatting>
-<conditionalFormatting sqref="G2:H1048576">
-<cfRule dxfId="3" text="" rank="0" percent="0" bottom="0" equalAverage="0" aboveAverage="0" priority="5" type="expression">
<formula>$C2="x"</formula>
</cfRule>
</conditionalFormatting>
-<conditionalFormatting sqref="F1;F2:J1048576">
-<cfRule dxfId="4" text="" rank="0" percent="0" bottom="0" equalAverage="0" aboveAverage="0" priority="6" type="cellIs" operator="notEqual">
<formula>#ref!</formula>
</cfRule>
</conditionalFormatting>
Comment 2 Julien Nabet 2016-07-05 20:18:06 UTC
On pc Debian x86-64 with LO Debian package 5.1.4, I don't reproduce this and have exactly the Excel result.

Could you please give a try with last stable LO version 5.1.4?
Comment 3 Geza 2016-07-06 12:02:27 UTC
I tested LibreOffice Calc 5.1.4 on both Windows 8.1 and OS X 10.11.5 by opening the same XLS3.xls file enclosed in the original bug report.
The result is still wrong in LibreOffice Calc 5.1.4.2 as it was in LO 5.0.4: the cells F4:J6 have gray background.
Only those cells marked by a letter 'G' have to have gray background (F3:J5) as in Excel 2013 (15.0.4823.1000). If there is an 'x' in column D, the cells in the same row (from column F to J) have to have gray background. Instead, the cells in the next row become gray.
Comment 4 Julien Nabet 2016-07-06 12:32:06 UTC
(In reply to Geza from comment #3)
>...
> Only those cells marked by a letter 'G' have to have gray background (F3:J5)
> as in Excel 2013 (15.0.4823.1000). If there is an 'x' in column D, the cells
> in the same row (from column F to J) have to have gray background. Instead,
> the cells in the next row become gray.

I must have missed this, I'll try to retest this.
Comment 5 Julien Nabet 2016-07-06 17:04:42 UTC
(In reply to Julien Nabet from comment #4)
> (In reply to Geza from comment #3)
> >...
> > Only those cells marked by a letter 'G' have to have gray background (F3:J5)
> > as in Excel 2013 (15.0.4823.1000). If there is an 'x' in column D, the cells
> > in the same row (from column F to J) have to have gray background. Instead,
> > the cells in the next row become gray.
> 
> I must have missed this, I'll try to retest this.

Indeed, I supposed I compared with LO screenshot by mistake.
Sorry for the noise :-(
Comment 6 QA Administrators 2017-09-01 11:18:08 UTC Comment hidden (obsolete)
Comment 7 eisa01 2017-11-10 21:26:49 UTC
This renders correctly for me now

Version: 6.0.0.0.alpha1+
Build ID: 7e03c4eed72452fdfb87341214a21956c08ba969
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2017-10-25_23:45:02
Locale: en-US (en_US.UTF-8); Calc: group
Comment 8 Geza 2017-11-11 08:48:03 UTC
Hereby I confirm that this bug does not appear on my system any more:
LibreOffice_5.4.2_MacOS_x86-64.dmg
Version: 5.4.2.2
Build ID: 22b09f6418e8c2d508a9eaf86b2399209b0990f4
CPU threads: 8; OS: Mac OS X 10.10.5; UI render: default; 
Locale: en-US (en.UTF-8); Calc: group

LibreOffice versions tested:
5.1.4: wrong
5.2.6: wrong
5.3.3: wrong
5.4.1: Fixed
5.4.2: Still OK

Computer:
Macmini6,2
OS X 10.10.5 (14F2511)

Thank you for fixing this bug.
Geza