Unflattening the picture was obviously failing because we didn't rewind

the stream after Flattening. Now Unflattening works, but the picture 
seems to be empty


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20270 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-03-01 08:47:05 +00:00
parent 0098867364
commit 3bf72bcb7c

View File

@ -116,6 +116,7 @@ PictureView::AllAttached()
if (status != B_OK)
printf("Error flattening BPicture: %s\n", strerror(status));
if (status == B_OK) {
stream.Seek(0, SEEK_SET);
fPicture = new BPicture();
status = fPicture->Unflatten(&stream);
if (status != B_OK)