Fix typo in BLayoutItem::SetLayout() which led to passing the wrong layout to the DetachedFromLayout() hook.
This commit is contained in:
parent
f87e4c7302
commit
449f014bcc
@ -168,7 +168,7 @@ BLayoutItem::SetLayout(BLayout* layout)
|
|||||||
fLayout = layout;
|
fLayout = layout;
|
||||||
|
|
||||||
if (oldLayout)
|
if (oldLayout)
|
||||||
DetachedFromLayout(layout);
|
DetachedFromLayout(oldLayout);
|
||||||
|
|
||||||
if (BView* view = View()) {
|
if (BView* view = View()) {
|
||||||
if (oldLayout && !fLayout) {
|
if (oldLayout && !fLayout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user