From d8ede51747a6628bfc93ae2bbdb0cd8efbe73a59 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 21 Aug 2010 21:22:12 +0000 Subject: [PATCH] If we failed to instantiate the view (ergo we are a zombie), don't remove the drop coordinates from the replicant message we store as they'll be needed in order to reinstantiate the zombie at the correct position on the next pass. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38303 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Shelf.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/Shelf.cpp b/src/kits/interface/Shelf.cpp index db9541945a..bcd75b979c 100644 --- a/src/kits/interface/Shelf.cpp +++ b/src/kits/interface/Shelf.cpp @@ -1334,8 +1334,10 @@ BShelf::_AddReplicant(BMessage *data, BPoint *location, uint32 uniqueID) } } - data->RemoveName("_drop_point_"); - data->RemoveName("_drop_offset_"); + if (!zombie) { + data->RemoveName("_drop_point_"); + data->RemoveName("_drop_offset_"); + } replicant_data *item = new replicant_data(data, replicant, dragger, relation, uniqueID);