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:
Jérôme Duval
2008-04-20 17:47:11 +00:00
parent 9091f4469b
commit c4157c8ddb
+2 -2
View File
@@ -81,7 +81,8 @@ BBox::BBox(border_style border, BView* child)
BBox::BBox(BMessage *archive) BBox::BBox(BMessage *archive)
: BView(archive) : BView(archive),
fStyle(B_FANCY_BORDER)
{ {
_InitObject(archive); _InitObject(archive);
} }
@@ -538,7 +539,6 @@ BBox::_InitObject(BMessage* archive)
{ {
fBounds = Bounds(); fBounds = Bounds();
fStyle = B_FANCY_BORDER;
fLabel = NULL; fLabel = NULL;
fLabelView = NULL; fLabelView = NULL;
fLayoutData = new LayoutData; fLayoutData = new LayoutData;