fixed some Archive() following stippi's path
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17190 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -59,14 +59,15 @@ BStringView::Instantiate(BMessage* data)
|
||||
status_t
|
||||
BStringView::Archive(BMessage* data, bool deep) const
|
||||
{
|
||||
BView::Archive(data, deep);
|
||||
status_t err = BView::Archive(data, deep);
|
||||
|
||||
if (fText)
|
||||
data->AddString("_text", fText);
|
||||
if (err == B_OK && fText)
|
||||
err = data->AddString("_text", fText);
|
||||
|
||||
data->AddInt32("_align", fAlign);
|
||||
if (err == B_OK)
|
||||
err = data->AddInt32("_align", fAlign);
|
||||
|
||||
return B_OK;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user