[haiku-development] Re: Patch for trac #2099

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 21 Apr 2008 17:18:58 +0200 CEST

SHINTA <shinta.0806@xxxxxxxxx> wrote:
> > While Korli already applied the patch, it's not correct. You 
> > overwrite 
> > the style that is given in the constructor; there is only one 
> > constructor which does not initialize fStyle prior to the call to 
> > _InitObject() (the unarchiving constructor).
>  I wonder... _InitObject(BMessage*) is called from only BBox(BMessage
> *),
> so, initializing vars in _InitObject() and BBox() has save effect. 
> Why
> only fStyle is initialized in BBox() while fLabel and so on is
> initialized in _InitObject()?

In addition to what Ryan said, fStyle is already initialized by all 
other constructors - it's part of the arguments passed to the 
constructor.

Bye,
   Axel.


Other related posts: