* Fixed a bug in BPoseView::CreatePoses() that Ingo found, but was apparently

too lazy to fix?!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41353 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2011-05-06 20:43:27 +00:00
parent 45aa6cb6a2
commit ccb1117c85
1 changed files with 5 additions and 4 deletions

View File

@ -1755,7 +1755,7 @@ BPoseView::CreatePoses(Model **models, PoseInfo *poseInfoArray, int32 count,
else
viewBounds = Bounds();
be_clipboard->Lock();
bool clipboardLocked = be_clipboard->Lock();
int32 poseIndex = 0;
uint32 clipboardMode = 0;
@ -1774,8 +1774,8 @@ BPoseView::CreatePoses(Model **models, PoseInfo *poseInfoArray, int32 count,
} else
fInsertedNodes.insert(*(model->NodeRef()));
if ((clipboardMode = FSClipboardFindNodeMode(model, false, true)) != 0
&& !HasPosesInClipboard()) {
if ((clipboardMode = FSClipboardFindNodeMode(model, !clipboardLocked,
true)) != 0 && !HasPosesInClipboard()) {
SetHasPosesInClipboard(true);
}
@ -1864,6 +1864,7 @@ BPoseView::CreatePoses(Model **models, PoseInfo *poseInfoArray, int32 count,
model->CloseNode();
}
if (clipboardLocked)
be_clipboard->Unlock();
FinishPendingScroll(listViewScrollBy, viewBounds);