Bug 132191 - Refreshing a range applies the first data row's background color to all the other data rows
Summary: Refreshing a range applies the first data row's background color to all the o...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-DataRange
  Show dependency treegraph
 
Reported: 2020-04-17 13:17 UTC by Kristian Slavov
Modified: 2022-08-26 03:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Simple test db (8.00 KB, application/vnd.sqlite3)
2020-08-25 11:51 UTC, Kristian Slavov
Details
Base file (2.29 KB, application/vnd.sun.xml.base)
2020-08-25 11:51 UTC, Kristian Slavov
Details
Actual sheet file (7.82 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-25 11:53 UTC, Kristian Slavov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Slavov 2020-04-17 13:17:08 UTC
Description:
I've defined a range that imports data from libreoffice base. For that range I've enabled "keep formatting" option.
When a range is refreshed the background color reverts to white. All other formatting remains (font, font size, borders)

If "keep formatting" option is not used, all formatting is lost, as expected.

Steps to Reproduce:
1.Associate a data source to some cells
2.Change the background color of some of them
3.Modify the range to use "keep formatting" option (probably on by default)
4.Update the range

Actual Results:
The background color of the cells changed to white. 
However other formatting such as borders, fonts, font sizes remain intact.

Expected Results:
The background color should remain as before the range update.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 6.4.2.2
Build ID: 1:6.4.2-3
CPU threads: 4; OS: Linux 5.5; UI render: default; VCL: x11; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded

The data source is fetched via libreoffice base using ODBC connection to a local sqlite3 database file.
Comment 1 Kristian Slavov 2020-04-17 13:18:33 UTC
OpenGL is *NOT* enabled.
Comment 2 Buovjaga 2020-08-25 11:22:06 UTC
(In reply to Kristian Slavov from comment #0)
> The data source is fetched via libreoffice base using ODBC connection to a
> local sqlite3 database file.

Please attach an example Base file + sqlite db file so we can quickly and conveniently test.

Please attach an example document.
Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the files.
Comment 3 Kristian Slavov 2020-08-25 11:51:14 UTC
Created attachment 164667 [details]
Simple test db
Comment 4 Kristian Slavov 2020-08-25 11:51:56 UTC
Created attachment 164668 [details]
Base file
Comment 5 Kristian Slavov 2020-08-25 11:53:01 UTC
Created attachment 164670 [details]
Actual sheet file
Comment 6 Kristian Slavov 2020-08-25 12:06:03 UTC
Attached sqlite3 db, Libreoffice Base file and the sheet.
All the data in the sheet is directly from the Base/db.  

I'm importing headers + data rows from a query, and I'm using the keep formatting option for the range.

I noticed something new. The first data row's background color is copied to all the other rows. So the bug should be renamed to:
Refreshing a range applies the first data row's background color to all the other data rows.

To reproduce the bug, change background color of the first data row and select refresh range.
Comment 7 Buovjaga 2020-08-25 12:40:23 UTC
Notes for reproduction on Arch Linux:

I had sqlite3 package already installed.

I installed sqliteodbc package from AUR per https://wiki.archlinux.org/index.php/Open_Database_Connectivity#SQLite

/etc/odbcinst.ini contents were amended by the installation as shown in the article.

In /etc/odbc.ini I added

[SQLite3]
Description=SQLite3
Driver=SQLite3
Database=/home/user/libobugs/vboxshare/odbc/mydb.sqlite
Timeout=100000
StepAPI=No
ShortNames=No
FKSupport=Yes
SyncPragma=Normal
JournalMode=Delete
BigInt=No

In lo_test.odb I did Edit - Database - Properties, Browse and selected SQLite3. Test Connection went fine. I saved the file.

In Tools - Options - LibO Base - Databases I added the lo_test.odb file.

Now I was able to look into test_sheet.ods.

1. Changed the background colour of cells B4:C4
2. Data - Refresh range

I confirm the colour was applied to the rest of the data cells.

A wild ride, but I learned something new :)
Comment 8 QA Administrators 2022-08-26 03:36:27 UTC
Dear Kristian Slavov,

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