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:
parent
7e8daebe34
commit
71947e478c
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user