mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fix an incorrect range check which prevented the user from copying or
moving the current selection of a text view immediately before itself with DnD operation. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31102 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
70a811b8c2
commit
cae1d262cf
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-08-09 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSTextView.m (-draggingEntered:, -draggingUpdated): Fix
|
||||
an incorrect range check which prevented the user from copying or
|
||||
moving the current selection immediately before itself with a DnD
|
||||
operation.
|
||||
|
||||
2010-08-03 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSColorPanel.m:
|
||||
|
|
|
@ -4888,7 +4888,8 @@ other than copy/paste or dragging. */
|
|||
respectFraction: YES];
|
||||
|
||||
if ([sender draggingSource] != self ||
|
||||
!NSLocationInRange(dragIndex, [self selectedRange]))
|
||||
dragIndex <= [self selectedRange].location ||
|
||||
dragIndex >= NSMaxRange([self selectedRange]))
|
||||
[self _draggingHijackInsertionPoint: dragIndex];
|
||||
else
|
||||
{
|
||||
|
@ -4957,7 +4958,8 @@ other than copy/paste or dragging. */
|
|||
#undef DRAGGING_SCROLL_DIST
|
||||
|
||||
if ([sender draggingSource] != self ||
|
||||
!NSLocationInRange(dragIndex, [self selectedRange]))
|
||||
dragIndex <= [self selectedRange].location ||
|
||||
dragIndex >= NSMaxRange([self selectedRange]))
|
||||
[self _draggingHijackInsertionPoint: dragIndex];
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue