[haiku-bugs] Re: [Haiku] #4147: Magnify app crashes

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Wed, 20 Jan 2010 14:37:48 -0000

#4147: Magnify app crashes
----------------------------------+-----------------------------------------
 Reporter:  atmartens             |       Owner:  axeld        
     Type:  bug                   |      Status:  new          
 Priority:  normal                |   Milestone:  R1           
Component:  Applications/Magnify  |     Version:  R1/pre-alpha1
 Keywords:                        |   Blockedby:               
 Platform:  All                   |    Blocking:               
----------------------------------+-----------------------------------------

Comment(by stippi):

 Nice work! You definitely identified the problem and correct location for
 the fix, only your fix is incorrect. BMenu should not care whether the
 BMenuItem has a BMessage or not, but I don't suppose it should return
 BSeparatorMenuItem instances. This should actually be checked against the
 BeOS implementation. I still have a ZETA installation which I can test on,
 but in general, I think one should return NULL in case dynamic_casting to
 BSeparatorMenuItem is successful.

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

Other related posts: