When unarchiving a BSplitLayout, initialize our members properly so that even if unarchiving fails, the object is in a usable state. Fixes CID 10045.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40522 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alex Wilson 2011-02-15 20:34:47 +00:00
parent 7e8daebe34
commit 71947e478c

View File

@ -198,6 +198,14 @@ BSplitLayout::BSplitLayout(enum orientation orientation,
BSplitLayout::BSplitLayout(BMessage* from)
:
BAbstractLayout(BUnarchiver::PrepareArchive(from)),
fOrientation(B_HORIZONTAL),
fLeftInset(0),
fRightInset(0),
fTopInset(0),
fBottomInset(0),
fSplitterSize(6),
fSpacing(be_control_look->DefaultItemSpacing()),
fSplitterItems(),
fVisibleItems(),
fMin(),