When drag and dropping a text file, Tracker would refuse to extract the text (and style attributes, if any) if the file in question didn't have both the text/plain filetype *and* Tracker's clipping attribute. Since I was unable to find any good reason whatsoever to check for the latter, I removed this. Fixes the reported problems where drag and dropping a file onto a BTextView would do nothing unless the clipping attribute existed as well.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28828 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-12-28 06:58:11 +00:00
parent 293ed4fe5b
commit db5b0bfcfe
1 changed files with 2 additions and 4 deletions

View File

@ -6451,11 +6451,9 @@ BPoseView::DragSelectedPoses(const BPose *pose, BPoint clickPoint)
info.GetType(type);
int32 tmp;
if (strcasecmp(type, kPlainTextMimeType) == 0
if (strcasecmp(type, kPlainTextMimeType) == 0) {
// got a text file
&& file.ReadAttr(kAttrClippingFile, B_RAW_TYPE, 0,
&tmp, sizeof(int32)) == sizeof(int32)) {
// and a clipping file
file.Seek(0, SEEK_SET);
off_t size = 0;