Bug 342867

Summary: Deleting first character also deletes picture
Product: [Applications] calligrawords Reporter: Inge Wallin <inge>
Component: generalAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.9 Pre-Alpha   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The testcase

Description Inge Wallin 2015-01-15 10:03:54 UTC
In the attached file, deleting the first character also deletes the picture. It makes no difference if the character is deleted by <delete> or <backspace>

Reproducible: Always

Steps to Reproduce:
1. load the attached file
2. delete the first 'x'
3.

Actual Results:  
The picture is also deleted

Expected Results:  
Only the character should be deleted.
Comment 1 Inge Wallin 2015-01-15 10:04:35 UTC
Created attachment 90413 [details]
The testcase
Comment 2 Camilla Boemann 2015-01-15 16:01:40 UTC
Git commit aaffa48c767072aff26ef62156afcdc7e4e74fdf by C. Boemann.
Committed on 15/01/2015 at 11:04.
Pushed by boemann into branch 'calligra/2.9'.

Make sure we don't delete anchors if we are just deleting adjecent characters

M  +11   -6    libs/kotext/commands/DeleteCommand.cpp

http://commits.kde.org/calligra/aaffa48c767072aff26ef62156afcdc7e4e74fdf