[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/view
From: Hamish Rodda <rodda () kde ! org>
Date: 2007-10-24 15:14:48
Message-ID: 1193238888.585944.5177.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 728887 by rodda:
Don't crash when releasing and no valid selection exists
M +8 -7 kateviewinternal.cpp
--- trunk/KDE/kdelibs/kate/view/kateviewinternal.cpp #728886:728887
@@ -2517,15 +2517,16 @@
if (m_selChangedByUser)
{
- if (m_view->selection())
+ if (m_view->selection()) {
QApplication::clipboard()->setText(m_view->selectionText (), QClipboard::Selection);
- // Set cursor to edge of selection... which edge depends on what
- // "direction" the selection was made in
- if ( m_view->selectionRange().start() < m_selectAnchor )
- updateCursor( m_view->selectionRange().start() );
- else
- updateCursor( m_view->selectionRange().end() );
+ // Set cursor to edge of selection... which edge depends on what
+ // "direction" the selection was made in
+ if ( m_view->selectionRange().start() < m_selectAnchor )
+ updateCursor( m_view->selectionRange().start() );
+ else
+ updateCursor( m_view->selectionRange().end() );
+ }
m_selChangedByUser = false;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic