as noticed by Axel, InitObject is also used by other constructors: we init fStyle in the BArchive constructor instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25086 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -81,7 +81,8 @@ BBox::BBox(border_style border, BView* child)
|
||||
|
||||
|
||||
BBox::BBox(BMessage *archive)
|
||||
: BView(archive)
|
||||
: BView(archive),
|
||||
fStyle(B_FANCY_BORDER)
|
||||
{
|
||||
_InitObject(archive);
|
||||
}
|
||||
@@ -538,7 +539,6 @@ BBox::_InitObject(BMessage* archive)
|
||||
{
|
||||
fBounds = Bounds();
|
||||
|
||||
fStyle = B_FANCY_BORDER;
|
||||
fLabel = NULL;
|
||||
fLabelView = NULL;
|
||||
fLayoutData = new LayoutData;
|
||||
|
||||
Reference in New Issue
Block a user