Summary: | crash on replacing KWord forward newline selection with horizontal space | ||
---|---|---|---|
Product: | kword | Reporter: | Stephen Compall <rushing> |
Component: | general | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 1.5 or before | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Stephen Compall
2002-10-11 01:38:45 UTC
Subject: koffice/lib/kotext CVS commit by faure: Fix crash due to autoformat using a stale paragraph pointer CCMAIL: 48999-done@bugs.kde.org M +2 -2 kotextview.cc 1.107 --- koffice/lib/kotext/kotextview.cc #1.106:1.107 @@ -330,6 +330,6 @@ void KoTextView::handleKeyPressEvent( QK { insertText( text ); - - doAutoFormat( m_cursor, p, m_cursor->index() - 1, text[ text.length() - 1 ] ); + // Don't use 'p' past this point. If we replaced a selection, p could have been deleted (#48999) + doAutoFormat( m_cursor, m_cursor->parag(), m_cursor->index() - 1, text[ text.length() - 1 ] ); } } |