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:
parent
53d3fc817d
commit
40dd3b47ca
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de.
|
* 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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -331,10 +332,10 @@ FindTextView::Paste(BClipboard* clipboard)
|
|||||||
if (_GetHexFromData(data, dataSize, &hex, &hexSize) < B_OK)
|
if (_GetHexFromData(data, dataSize, &hex, &hexSize) < B_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SetText(hex, hexSize);
|
Insert(hex, hexSize);
|
||||||
free(hex);
|
free(hex);
|
||||||
} else
|
} else
|
||||||
SetText((char*)data, dataSize);
|
Insert((char*)data, dataSize);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user