From c4157c8ddbd290fb9fe2b69538a5603af3ec05fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 20 Apr 2008 17:47:11 +0000 Subject: [PATCH] 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 --- src/kits/interface/Box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/Box.cpp b/src/kits/interface/Box.cpp index 1976959c68..abf5070160 100644 --- a/src/kits/interface/Box.cpp +++ b/src/kits/interface/Box.cpp @@ -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;