Description: I have a spreadsheet created with Excel (in .xlsx format). In Excel, the various worksheet tabs are shown in a variety of colours. When opening this spreadsheet in LibreOffice, the tab colours are not shown. The file command reports: foo.xlsx: Microsoft Excel 2007+ Steps to Reproduce: 1. Open the .xlsx file in LibreOffice. 2. Note that tabs are not rendered in the correct colour(s). Actual Results: Tabs are shown in the default colour. Expected Results: Tabs should be shown in the colours as I see them in Excel. Reproducible: Always User Profile Reset: Yes Additional Info: I will try to make a reproducible file that I can attach here.
Hello, Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document. (Please note that the attachment will be public, remove any sensitive information before attaching it.) How can I eliminate confidential data from a sample document? https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F Thank you
Created attachment 148623 [details] Reproducible test case. The problem appears to be that the tab colour is not rendered correctly when the worksheet is protected.
Confirm. Version: 6.3.0.0.alpha0+ Build ID: 3fa4674615b747e219afe5bf0a9b689df3840439 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: x11;
Any progress on this? Thanks.
still repro in current 7.1 master
Also in LibreOffice 6.4.7.2 (x86) and 7.0.2.2 (x64). Do not matter if file is created with Calc or Excel. Unprotected sheet tabs retain its color.
I can confirm this bug persists in LO 7.3.2.2 The issue only affects protected sheets in documents saved in xlsx format.
Protecting any sheets in an xlsx-formatted file with intact tab colors will also strip it of its tab colors.
LibreOffice sets the background color of the tab in ScDocFunc::SetTabBgColor where it checks if the tabs is protected or not. If the tab is protected, no background will be set for the corresponding tab. Allowing to change the background color in the function will allow the change of the background color via Basic macro: ThisComponent.getCurrentController().getActiveSheet().TabColor = 255*200 In M$ Excel I can change the background color of a tab via VBA as well: Worksheets("Sheet1").Tab.Color = RGB(25, 25, 25) Saving the document in LibreOffice/M$ will keep the changed background color of the tab. Should we stick to the behaviour of M$ or try to set the background color differently for a protected tab in LibreOffice?
I vote for mimicking MS Excel behaviour.
Dear Ben Elliston, 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
The bug persists in: Version: 24.8.3.2 (X86_64) / LibreOffice Community Build ID: e14c9fdd1f585efcbb2c5363087a99d20928d522 CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded
*** Bug 164941 has been marked as a duplicate of this bug. ***