Bug 312584 - Wrong style applied when editing header
Summary: Wrong style applied when editing header
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-04 03:57 UTC by Sawetree Petnakin
Modified: 2013-01-06 09:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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