Bug 342867 - Deleting first character also deletes picture
Summary: Deleting first character also deletes picture
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: 2.9 Pre-Alpha
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-15 10:03 UTC by Inge Wallin
Modified: 2015-01-15 16:01 UTC (History)
0 users

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


Attachments
The testcase (26.49 KB, application/vnd.oasis.opendocument.text)
2015-01-15 10:04 UTC, Inge Wallin
Details

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