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-28 14:16:37 -06:00
parent f87e4c7302
commit 449f014bcc
+1 -1
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) {