Bug 72412

Summary: Tables in Impress: when the background is changed, the font size changes
Product: LibreOffice Reporter: Jion <el.manu>
Component: PresentationAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: major    
Priority: high CC: a.alharthi, gokul.cdac, qubit, timar74, todventtu
Version: 4.1.2.2 rcKeywords: bisected, regression
Hardware: All   
OS: All   
Whiteboard: bibisected
i915 platform: i915 features:
Attachments: Presentation file exhibiting bug behavior

Description Jion 2013-12-06 19:33:34 UTC
In a new impress document, insert a table and fill it with some random text.
Change the size of this text. Then, go to format-page and change the background to a bitmap or a color. Apply the changes. Look the size of text in the table changes.
Comment 1 Robinson Tryon (qubit) 2013-12-07 02:55:35 UTC
TESTING on LO 4.2.0.0.beta2 + UBuntu 12.04.3

(In reply to comment #0)
> In a new impress document, insert a table and fill it with some random text.

Insert -> Table -> (use default rows/columns)

> Change the size of this text. 

Marquis-select the entire table, then change the font size in the toolbar.

> Then, go to format-page and change the
> background to a bitmap or a color.

Format -> Page -> Background
Fill -> Color -> Orange

> Apply the changes.

- Click "OK"
- Get dialog "Background settings for all pages?" -> Click "OK"

> Look the size of text
> in the table changes.

Text changes back to original value.

NOTES:

- Each time the bg color is changed, the fontsize reverts.
- Textboxes are not affected in the same way
Comment 2 Robinson Tryon (qubit) 2013-12-07 02:55:52 UTC
Tag confirmation whiteboard.
Comment 3 Robinson Tryon (qubit) 2013-12-07 03:02:10 UTC
Created attachment 90387 [details]
Presentation file exhibiting bug behavior
Comment 4 Robinson Tryon (qubit) 2013-12-07 03:05:17 UTC
(In reply to comment #1)
>

Using new attachment "Presentation file exhibiting bug behavior", we can repro even faster.

REPRO STEPS:
- Open attachment (table-font-size-reverts-on-bg-change_fdo72412.odp)
- Observe fontsize in textbox and in table!
- Format -> Page -> Background
- Fill -> Color -> Orange
- Click "OK"
- Get dialog "Background settings for all pages?" -> Click "OK"

Result: font size in table will have shrunk down to default value
Comment 5 Robinson Tryon (qubit) 2013-12-07 03:09:36 UTC
(In reply to comment #4)
> REPRO STEPS:
> - Open attachment (table-font-size-reverts-on-bg-change_fdo72412.odp)
> - Observe fontsize in textbox and in table!
> - Format -> Page -> Background
> - Fill -> Color -> Orange
> - Click "OK"
> - Get dialog "Background settings for all pages?" -> Click "OK"
> 
> Result: font size in table will have shrunk down to default value

NoRepro in LO 4.1.2.2 (Ubuntu 12.04.3).

Keyword: regression 
Priority/Severity: Bumping up to high/major.

Nice catch, Jion!
Comment 6 Andras Timar 2014-03-24 18:25:48 UTC
I could not reproduce the bug at all with the attached document. However, following instruction in comment 1, the bug was reproduced even in LibreOffice 4.1.2.2. In LibreOffice 4.0.3.3 the bug was not reproduced. It is not a 4.2 regression, but earlier.
Comment 7 Andras Timar 2014-03-25 14:38:41 UTC
a00b62422e5499e842d0b3b6302ba79f3d808c27 is the first bad commit
commit a00b62422e5499e842d0b3b6302ba79f3d808c27
Author: Gokul <gswaminathan@kacst.edu.sa>
Date:   Sat Feb 2 15:29:56 2013 +0300

    Fixes fdo#46186, The Table Remains in the defined writing mode.
    
    The table in impress is drawn under the rectangular are, on Selecting
    the table it was only selecting the rectangular area and not the cells
    inside, Making the layout to be as RTL which was mirroring the table.
    
    But, We need the table to be in RTL Writing mode and not mirroring the
    table. Now on applying my patch, If table is selected, it will select
    the entire cells inside which is the actual table and the functionality
    works fine.
    
    Change-Id: I9d6bdde5019322488be66fa89a6488d348b2cf44
    Reviewed-on: https://gerrit.libreoffice.org/1964
    Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
    Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.