Bug 300209

Summary: Assert in Kate::TextBuffer::removeText
Product: [Applications] kate Reporter: Allen Winter <winter>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kate backtrace showing assert

Description Allen Winter 2012-05-17 20:41:39 UTC
Kate (via KDevelop) is asserting whenever I save a particular file.

I will attach a backtrace

Reproducible: Always

Steps to Reproduce:
1.load the file. even a recovered version of the file
2. Ctrl-S or select the Save item from the menu
3.
Actual Results:  
asserts

Expected Results:  
doesn't assert
Comment 1 Allen Winter 2012-05-17 20:42:38 UTC
Created attachment 71165 [details]
kate backtrace showing assert
Comment 2 Dominik Haumann 2012-05-18 10:55:57 UTC
Git commit 39da06bc1dbeb07b6e018edcb8ef5434a5c6e35a by Dominik Haumann.
Committed on 18/05/2012 at 12:52.
Pushed by dhaumann into branch 'master'.

correctly implement remove-trailing-spaces on save

@Gregor: one should only use the edit*() functions to modify the document content
@Allen: thanks for the report!
Related: bug 115175

M  +12   -17   part/document/katedocument.cpp
M  +1    -1    part/document/katedocument.h

http://commits.kde.org/kate/39da06bc1dbeb07b6e018edcb8ef5434a5c6e35a