Add forgotten test to apply smart insert and delete during drag and

drop in a text view only when selection granularity is select by word.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29679 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2010-02-19 23:15:13 +00:00
parent 83bb771add
commit 11d5564384
2 changed files with 8 additions and 1 deletions

View file

@ -4776,7 +4776,8 @@ other than copy/paste or dragging. */
forType: NSRTFDPboardType] || ret;
}
if ([type isEqualToString: NSSmartPastePboardType])
if ([type isEqualToString: NSSmartPastePboardType] &&
[self selectionGranularity] == NSSelectByWord)
{
ret = [pboard setData: [NSData data]
forType: NSSmartPastePboardType] || ret;