Bug 312584

Summary: Wrong style applied when editing header
Product: [Applications] calligrawords Reporter: Sawetree Petnakin <Sawetree.p>
Component: generalAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cbo
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sawetree Petnakin 2013-01-04 03:57:09 UTC
When a header is edited in a certain way the wrong style is applied to the text.

Reproducible: Always

Steps to Reproduce:
1. Start a new empty document
2. Change the first (empty) paragraph to e.g. style Head 2
3. Write a few words. Press Enter
4. Write some more characters
5. Delete the characters, the newline and a few characters at the end of the heading.
6. Type some new characters.
Actual Results:  
The last typed characters will be in another style than the rest of the header.

Expected Results:  
The new characters should be using the same style as the rest of the paragraph.
Comment 1 Camilla Boemann 2013-01-04 10:06:14 UTC
I can reproduce
Comment 2 Pierre Stirnweiss 2013-01-06 09:12:03 UTC
Git commit 08b0eb4f8bd1331099718260a1ff99d3c4a4fb29 by Pierre Stirnweiss.
Committed on 06/01/2013 at 09:55.
Pushed by pstirnweiss into branch 'calligra/2.6'.

Fix wrong style applied on backspace

When using backspace, we keep the char format of the deleted char.
This should not apply when deleting across the newline boundary.
REVIEW: 108199

M  +4    -1    libs/kotext/commands/DeleteCommand.cpp

http://commits.kde.org/calligra/08b0eb4f8bd1331099718260a1ff99d3c4a4fb29