Created attachment 124621 [details] screenshot Steps to reproduce: 1) Open this link http://www.gunza.ru/faq/svd.html 2) Select first table and copy it to buffer 3) Paste it to LO Writer 4) Select all cells and try to make them yellow - first two cells will remain half-gray.
Reproduced. Arch Linux 64-bit, KDE Plasma 5 Version: 5.2.0.0.alpha1+ Build ID: 540fee2dc7553152914f7f1d8a41921e765087ef CPU Threads: 8; OS Version: Linux 4.5; UI Render: default; Locale: fi-FI (fi_FI.UTF-8) Built on April 30th 2016
Found in Version: 5.4.0.0.alpha1+ Build ID: 9d320ec4d818f86e58a15fd46248026502b1cc94 CPU threads: 4; OS: Windows 6.2; UI render: default; TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-05-09_01:27:12 Locale: en-US (nl_NL); Calc: single and in LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4
** Please read this message in its entirety before responding ** 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 http://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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
confirmed in 6.2 master
Created attachment 163451 [details] mergedCellBackgroundColour.odt: merged cells only show cell color in top grid. repro 7.1+ This has nothing to do with HTML or copy/paste. So what you have here with OPs example is a table-wide background property of light gray, which is overridden in some rows via with row-level background properties of dark gray or yellow. The cells themselves don't have a background property. Because A1 is merged with A2, and B1 is merged with B2, those grids kindof don't exist, but yet the row property is shining through in those spaces. This is easy to reproduce by hand in LO. I notice that horizontal merges are OK - it is only the vertical merges where the colour doesn't apply to each grid-section of the merged cell.
I confirmed with a few bibisect spot-checks that this new definition of the problem has also been inherited from OOo.
Code pointer: this commit probably stopped painting merged cells commit 4207a09677e03f857dc9341616775be6c4e5a199 Author: Vladimir Glazounov on Wed Jun 4 08:50:59 2008 +0000 INTEGRATION: CWS sw30bf04 (1.115.2); FILE MERGED 2008/05/09 14:05:11 fme 1.115.2.1: #i80595# ww8 import should create new tables I can't tell why this was added. Reverting it fixes the problem.
Created attachment 163454 [details] mergedCellColor.odt: only row background interferes with cell, not table background.
proposed fix at https://gerrit.libreoffice.org/c/core/+/99343
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c016fe2b5918d6e53113e100b1126076b6e1a6a3 tdf#99492 sw layout: always paint merged cell grids It will be available in 7.1.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/eb830ad284f245165b6ab5e8647d48834622f2d5 Revert "tdf#99492 sw layout: always paint merged cell grids" It will be available in 7.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-7-2": https://git.libreoffice.org/core/commit/20672741eded49de01e8b7bc660e115f404203aa Revert "tdf#99492 sw layout: always paint merged cell grids" It will be available in 7.2.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/093392709e8f50fe4484977b61dfe47b5ed8968a Revert "tdf#99492 sw layout: always paint merged cell grids" It will be available in 7.1.7. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
re-opening since the attempted commit caused a nasty regression as documented in bug 144554. The fix has been reverted back to 7.1.7. Make sure to review attachment 175083 [details] (mergedCellWithBackground.odt) and attachment 175139 [details] (mergedCellWithBackgroundC.docx) with any attempted fix.
This painting of Table / Row / Cell is currently handled by recursive calls to SwFrame::PaintSwFrameBackground. It first paints the table (IsTabFrame()), then it GetLower() and paints the row (IsRowFrame()), then it GetLower() and paints the cell (IsCellFrame()). I expect the key to solving this is to cache/delay the CellFrame paintings, and to handle them after all the rows have been printed. But that is starting to get past my skill level.