Bug 124079

Summary: The text of merged cells interferes cells beyond to fit vertically
Product: [Applications] calligrasheets Reporter: Lambi Theocharidis <mail>
Component: generalAssignee: Calligra Sheets (KSpread) Bugs <calligra-sheets-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: lambdae2
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Lambi Theocharidis 2006-03-22 15:41:02 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    SuSE RPMs

The text of merged cells interferes cells beyond to fit vertically. 

Reproduction

Write a word with 8 characters to A1
Write a word with 3 characters to A2, B2 and c2
Merge the cells A1, B1, C1
Doubleclick column A, B, C

The column A is brighter than the others
Comment 1 Stefan Nikolaus 2006-03-25 17:14:00 UTC
You mean the horizontal adjustment of the cell width does not respect the merged cell status of cell A1 and that column A is wider than necessary.
Comment 2 Elián Hanisch 2008-11-02 19:38:55 UTC
Can confirm in current trunk, to reproduce just
1. write in A1 something long enough that doesn't fit in the cell.
2. merge A1 B1 C1
3. double click A1's column

even though the text in A1 does fit in the merged cells, the A column gets wider.
Comment 3 Marijn Kruisselbrink 2011-06-29 17:17:13 UTC
Git commit 9934979f3e6954ad291af9b89630e72c73e3f9b3 by Marijn Kruisselbrink.
Committed on 29/06/2011 at 11:58.
Pushed by mkruisselbrink into branch 'master'.

when figuring out the minimum size of a column to fit its contents, take merged cells into account in a slightly better way, by subtracting the width of the additional columns from the size that is needed for the text in a cell.
BUG: 124079

M  +9    -0    tables/commands/RowColumnManipulators.cpp     

http://commits.kde.org/calligra/9934979f3e6954ad291af9b89630e72c73e3f9b3