[haiku-bugs] Re: [Haiku] #5736: LayoutBug, AlignLayoutWith, SplitLayout

  • From: "cipri" <trac@xxxxxxxxxxxx>
  • Date: Mon, 19 Apr 2010 12:14:11 -0000

#5736: LayoutBug, AlignLayoutWith, SplitLayout
--------------------------------+-------------------------------------------
 Reporter:  cipri               |       Owner:  axeld         
     Type:  bug                 |      Status:  new           
 Priority:  normal              |   Milestone:  R1            
Component:  Kits/Interface Kit  |     Version:  R1/Development
 Keywords:                      |   Blockedby:                
 Platform:  All                 |    Blocking:                
--------------------------------+-------------------------------------------

Comment(by cipri):

 Replying to [comment:4 bonefish]:
 > Replying to [comment:3 cipri]:
 > > In the source code, you find these two lines:
 > >
 > > leftLayout->AlignLayoutWith( middleLayout, B_VERTICAL );
 > > middleLayout->AlignLayoutWith( rightLayout, B_VERTICAL );
 > >
 > > if you make a little change, and turn them into:
 > >
 > > leftLayout->AlignLayoutWith( middleLayout, B_VERTICAL );
 > > middleLayout->AlignLayoutWith( rightLayout, B_VERTICAL );
 > >
 > > then the program crashes.
 >
 > I see no difference between those lines.


 sorry, I wrote two times the same.
 Now the correct information:

 In the source (mainwindow.cpp)  you find the two lines
 leftLayout->AlignLayoutWith( middleLayout, B_VERTICAL );
 rightLayout->AlignLayoutWith( middleLayout, B_VERTICAL );

 now if you change the second line   from
 rightLayout->AlignLayoutWith( middleLayout, B_VERTICAL );

 into:
 middleLayout->AlignLayoutWith( rightLayout, B_VERTICAL );

 the program crashes and the debugger is called.

 (and I think, it didn't crash before bug #5522 was fixed).

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5736#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: