[Upstream] [regression] font display corruption in merged cells containing line breaks in Calc when scrolling

Bug #720327 reported by Ilja Sekler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Unknown
Unknown
libreoffice (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: openoffice.org

Pixel rows inside merged and centered cells in Calc get randomly dropped or (seldom) duplicated when scrolling the sheet. This is a regression from openoffice.org-calc 3.2.1-7ubuntu1 res. OpenOffice.org 3.2.1 which I see in Ubuntu's openoffice.org-calc 3.2.1-7ubuntu1.1 as well as in OpenOffice.org 3.3.0 from Sun/Oracle.

Steps to reproduce:

1. Select a cell range spanning some cell rows, merge and center the selected cells.

2. Activate "wrap text automatically" for the merged cells.

3. Insert a (long) text and leave the cell.

4. Scroll the sheet.

Ubuntu release: 10.10
openoffice.org-calc 3.2.1-7ubuntu1.1

I see this both with Metacity and with Compiz. It doesn't matter whether Calc runs fullscreen or in a window.

lspci -nnk | grep -A 2 VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation N10 Family Integrated Graphics Controller [8086:a011]
 Subsystem: ASUSTeK Computer Inc. Device [1043:83ac]
 Kernel driver in use: i915

Tags: lo33
Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :
Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :
Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :

LibreOffice 3.3.0
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

is also affected.

Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :

The bug is present in

LibreOffice 3.3.1
OOO330m19 (Build:7)
tag libreoffice-3.3.1.1

as well.

Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :

After further testing it turns out to be that only like breaks are required and that the issue is not linked to Intel graphics. Retested and reproduced with

LibreOffice 3.3.0
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4, Ubuntu package 1:3.3.0-1ubuntu1

on Natty too. Adjusting the summary and the package accordingly, as LibreOffice will surely get more attention.

affects: openoffice.org (Ubuntu) → libreoffice (Ubuntu)
summary: - [regression] font display corruption in merged and centered cells in
+ [regression] font display corruption in cells containing line breaks in
Calc when scrolling
Revision history for this message
In , Ilja Sekler (ilja-sekler-) wrote :

Created attachment 43646
Screenshot illustrating the issue

When scrolling a sheet with merged cells, a few pixel high stripe hidden behind the column header at scroll stops is randomly dropped or duplicated, corrupting font display in the merged cells. This was not the case in OpenOffice.org 3.2.1, but was introduced during the development cycle of 3.3.0 and was imported by LibreOffice as well.

Only fonts in the merged cells are affected, not graphics. Text with line breaks in normal, not merged cells is not affected too, because Calc scrolls always row-wise.

STR:

1. Select a cell range spanning some cell rows, merge selected cells.

2. Activate "wrap text automatically" for the merged cells to get line breaks.

3. Insert a (long) text and leave the cell.

4. Vertically scroll the sheet.

Actual results: randomly dropped or duplicated horizontal stripes corrupting font display in the cell.

Both normal and page break preview are affected, forcing redraw of the cell by resizing the window or scrolling horizontally clears the font corruption.

Tested with

LibreOffice 3.3.1
OOO330m19 (Build:8)
tag libreoffice-3.3.1.2

on Ubuntu 10.10 and with the current LibreOffice package shipped with Ubuntu Natty. Downstream bug: <https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/720327>.

Revision history for this message
In , Ilja Sekler (ilja-sekler-) wrote :

Created attachment 43647
a simple testcase

summary: - [regression] font display corruption in cells containing line breaks in
- Calc when scrolling
+ [regression] font display corruption in merged cells containing line
+ breaks in Calc when scrolling
Revision history for this message
Ilja Sekler (ilja-sekler-) wrote : Re: [regression] font display corruption in merged cells containing line breaks in Calc when scrolling

Filed upstream bug <https://bugs.freedesktop.org/show_bug.cgi?id=34558> and adjusted once again the summary.

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :

FYI: The issue is fixed in Beta 1 of Oracle's OpenOffice.org 3.4 (Build:9583). The display gets properly redrawn on scroll. I don't have a build environment set up for LibreOffice, so I can't tell whether the bug is already fixed in the current LibreOffice code as well.

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

needs to be fixed upstream.

summary: - [regression] font display corruption in merged cells containing line
- breaks in Calc when scrolling
+ [Upstream] [regression] font display corruption in merged cells
+ containing line breaks in Calc when scrolling
Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

I can confirm the issue with 3.4/recent master.

penalvch (penalvch)
tags: added: lo33
Revision history for this message
In , Libreoffice-z (libreoffice-z) wrote :

Related to "Bug 36391 - VIEWING Redraw problems"?

[Reproducible] with reporter's sample and "LibreOffice 3.4.5 RC1 - WIN7 Home Premium (64bit) German UI [Build ID: OOO340m1 (Build:501)]" with 64 bit AMD Phenom II X4 955 Processor 3.2 GHz, 4GB RAM, Graphic Card: NVIDIA GeForce GT 430

Also with Server installation of Master "LOdev 3.5.0beta2+ – WIN7 Home Premium (64bit) ENGLISH UI [Build ID: 22905fb-b605e4f-4c1bcb5]" Win-x86@6- - pull time 2011-12-20 20:59:59)

@Ilja Sekler:
<http://wiki.documentfoundation.org/BugReport_Details#Version>
Your version is?

@Kohei:
Please feel free to reassign (or reset Assignee to default) if it’s not your area or if provided information is not sufficient. Please set Status to ASSIGNED if you accept this Bug.

Revision history for this message
In , Ilja Sekler (ilja-sekler-) wrote :

> Related to "Bug 36391 - VIEWING Redraw problems"?

Bug 36391 is rather a dupe of this one, but for Windows as well. Adjusting Platform from "Other - Linux (All)" to "All - All".

> @Ilja Sekler:
<http://wiki.documentfoundation.org/BugReport_Details#Version>
Your version is?

Version set to "LibO 3.3.0 release" according to <https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/720327/comments/3>.

Revision history for this message
In , Libreoffice-bugs (libreoffice-bugs) wrote :

David Tardon committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=e462a30d03c16aa4202f8d28ad52b15feb3d9255

fdo#34558 don't crash on undoing text frame removal

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Joren-libreoffice (joren-libreoffice) wrote :

(In reply to comment #5)
> David Tardon committed a patch related to this issue.
> It has been pushed to "master":
>
> http://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=e462a30d03c16aa4202f8d28ad52b15feb3d9255
>
> fdo#34558 don't crash on undoing text frame removal
>
>
>
> The patch should be included in the daily builds available at
> http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
> information about daily builds can be found at:
> http://wiki.documentfoundation.org/Testing_Daily_Builds
> Affected users are encouraged to test the fix and report feedback.

Sorry for that, but due a typo in the title this message was posted to the wrong bug report. Therefore I also delete the 'whiteboard target'.

Kind regards,
Joren

Revision history for this message
In , Libreoffice-bugs (libreoffice-bugs) wrote :

Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=ed09e6b233eac719744b32daf0ea47cea423bcc3

Revert "fdo#34558 don't crash on undoing text frame removal"

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Korrawit Pruegsanusak (detective-conan-1412) wrote :

Removed the target again per comment 7

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in df-libreoffice:
importance: Medium → Unknown
status: Confirmed → Unknown
Changed in libreoffice (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.