Fix problem in LayoutTest1 under gcc4. For some reason, toggledView was

being assigned to twice, while being passed to Add(). Under gcc4, the
second call to Add(toggledView = new TestView(), ...) was passing in the
original value of toggledView, not the new TestView, which caused a call
to debugger().
This commit is contained in:
Alex Wilson
2011-10-28 14:16:00 -06:00
parent 397fbc47bb
commit 0926395334
@@ -624,7 +624,7 @@ struct SplitterGroupLayoutTest1 : public Test {
// row 3
.AddSplit(B_HORIZONTAL, B_USE_DEFAULT_SPACING, 3)
.Add(new TestView(), 3)
.Add(toggledView = new TestView(), 2)
.Add(new TestView(), 2)
.Add(new TestView(), 1)
.End()
// make the row uncollapsible