Issue 79176

Summary: Formatting applied to a selection that starts at the cell's beginning and end at a line break are converted to cell-formattings, and 2 undo-steps are produced instead of only one
Product: Calc Reporter: norbert2 <norbert.notz>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: helenrussian, issues, kpalagin
Version: OOo 2.2.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
spreadsheet to reproduce the bug none

Description norbert2 2007-07-03 18:49:17 UTC
Hi.

Please open the attached spreadsheet:

1. double-click the cell A1
2. Select the word „11111“
3. Press the bold-button
4. Press RETURN to leave the edit-mode: Note that the whole cell has bold applied
5. Press undo one time: now the style is only applied to „11111“, as expected.A
second undo is neccessary to remove the formatting completely.

The bug also happens with other formattings like cursive, underlining or text color.

The same happens if you select both words, „11111“ and „22222“, but not if you
only select „22222“ to apply a formatting.

StarCalc seems to automatically convert text-formattings to cell-formatings, if
the whole cell content is selected.
I think that there is a bug in the function so that StarCalc does also converts
text-styles to cell-styles if a style is applied to a selection that starts at
the beginning of a cell and ends at a line break.
Comment 1 norbert2 2007-07-03 18:50:23 UTC
Created attachment 46497 [details]
spreadsheet to reproduce the bug
Comment 2 helenrussian 2007-07-10 11:26:50 UTC
Confirming with OOo 2.2.1 on Linux OpenSUSE 10.2 - as described.
Comment 3 kpalagin 2007-07-10 14:18:03 UTC
Confirming with 2.3m218 on WinXP - as described.
Comment 4 frank 2007-07-11 14:32:25 UTC
Hi Thomas,

seems to be yours as Edit Engine is your construction site.

Frank
Comment 5 norbert2 2009-03-18 08:59:15 UTC
@tl: What about targeting this issue?