From 40dd3b47ca56aee55e7a8690743bd49a4b758ad0 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sun, 22 Nov 2009 03:08:58 +0000 Subject: [PATCH] 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 --- src/apps/diskprobe/FindWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/diskprobe/FindWindow.cpp b/src/apps/diskprobe/FindWindow.cpp index b5df9dec63..3c157cc71e 100644 --- a/src/apps/diskprobe/FindWindow.cpp +++ b/src/apps/diskprobe/FindWindow.cpp @@ -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; }