Issue 124165

Summary: Nested Tables: Autofit optimal column width with wrong result for RTF Table
Product: Writer Reporter: Rainer Bielefeld <rainerbielefeld_ooo_qa>
Component: formattingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: elish, issues, rainerbielefeld_ooo_qa
Version: 3.4.0   
Target Milestone: ---   
Hardware: All   
OS: Windows 7   
See Also: https://issues.apache.org/ooo/show_bug.cgi?id=124162
https://issues.apache.org/ooo/show_bug.cgi?id=123063
Issue Type: DEFECT Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---

Description Rainer Bielefeld 2014-02-02 07:06:37 UTC
This one is a spin off of "Bug 124162 - Nested Tables: Pasted RTF Table exceeds available cell width"

Steps how to reproduce Reproducible with server installation of "AOO 4.1.0-Dev – English UI / German locale - [AOO410m1(Build:9750) - Rev. 1562493 - 2014-01-30]" on German WIN7 Home Premium (64bit)", own separate user profile:

1. Open attached  Attachment 82463 [details] for Bug 124162
   > 
2. In Stpe 2 you see various nested tables with RTF-tables A1:G7 within a 
   normal Text document table cell
3.1. For each  RTF-table select all visible cells using mouse
3.2.'Menu Table -> Autofit -> Column -> Optium Column Width'
4. Compare results
   As expected RTF table widths will be reduced until Table with last 
   visible column "F"
   Bug: for RTF Tables with less visible columns step 3.2 will in crease 
        Column width to Text table cell width                               :-(

Additional info:
----------------
(a) Already Reproducible with "Ooo 3.1.1 German WIN7 Home Premium (64bit)DE 
   [OOO310m19 (Build 9420)]"
(b) Was still ok with OOo 2.0.2
(d) Same result with context menu 'Column -> Optimal Width' (of course)
(e) LibO 4.1 also affected
(f) Problem also exists for Wource Table in HTML Tabel cells and RTF Table Cells
    (To create these Tables in a CALC doument select A1:A1, then 
     'Copy -> Paste Special -> Formatted Text RTF' to text document 
     or 
     'Copy -> Paste Special -> Formatted Text HTML' to text document
Comment 1 Rainer Bielefeld 2014-02-02 07:09:08 UTC
(g) Might be related to "Bug 124162 - Nested Tables: Pasted RTF Table exceeds 
    available cell width"
(h)  Already reproducible with  Pre-3.4.0 (OOo 3.1.1), but because of crippled  
     Version selector (Bug 123063) no useful info can be contributed
Comment 2 Edwin Sharp 2014-04-17 18:44:38 UTC
Confirmed with
AOO420m1(Build:9800)  -  Rev. 1586681
Rev.1586681
Win 7