Summary: | Crash after switching from block selection to line selection and moving cursor with arrows | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Albert Deuzeman <albert.deuzeman> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ehamberg, marek.trylinski |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Albert Deuzeman
2008-12-16 15:35:15 UTC
I can confirm this. The problem seems to be in view/kateview.cpp in the method KateView::setBlockSelectionMode, line 2099: if(!blockSelectionMode() && !m_viewInternal->getCursor().isValid()) m_viewInternal->getCursor().isValid() returns true, even if the cursor is at an "invalid" position. Does anyone know why? oh, isValid() just checks that line and coumns is >= 0. makes sense. so i guess that the cursor should be moved to the last column of the current line when leaving block selection mode. i'll fix that. SVN commit 897671 by ehamberg: Fix crash when leaving block select mode BUG: 177905 M +8 -4 kateview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=897671 SVN commit 897682 by ehamberg: Fix crash when leaving block select mode BUG: 177905 M +8 -4 kateview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=897682 *** Bug 174176 has been marked as a duplicate of this bug. *** *** Bug 178474 has been marked as a duplicate of this bug. *** |