DiskProbe :

Use the Insert method when pasting text into the find window 
 rather than SetText. 

 This fixes ticket #3344 while making more sense semantically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34181 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre 2009-11-22 03:08:58 +00:00
parent 53d3fc817d
commit 40dd3b47ca

View File

@ -1,5 +1,6 @@
/*
* Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2009, Philippe St-Pierre, stpere@gmail.com
* Distributed under the terms of the MIT License.
*/
@ -331,10 +332,10 @@ FindTextView::Paste(BClipboard* clipboard)
if (_GetHexFromData(data, dataSize, &hex, &hexSize) < B_OK)
return;
SetText(hex, hexSize);
Insert(hex, hexSize);
free(hex);
} else
SetText((char*)data, dataSize);
Insert((char*)data, dataSize);
return;
}