Fix typo in BLayoutItem::SetLayout() which led to passing the wrong layout to the DetachedFromLayout() hook.

This commit is contained in:
Alex Wilson 2011-10-16 21:54:44 -06:00
parent f87e4c7302
commit 449f014bcc

View File

@ -168,7 +168,7 @@ BLayoutItem::SetLayout(BLayout* layout)
fLayout = layout;
if (oldLayout)
DetachedFromLayout(layout);
DetachedFromLayout(oldLayout);
if (BView* view = View()) {
if (oldLayout && !fLayout) {