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:
@@ -116,6 +116,7 @@ PictureView::AllAttached()
|
|||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
printf("Error flattening BPicture: %s\n", strerror(status));
|
printf("Error flattening BPicture: %s\n", strerror(status));
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
|
stream.Seek(0, SEEK_SET);
|
||||||
fPicture = new BPicture();
|
fPicture = new BPicture();
|
||||||
status = fPicture->Unflatten(&stream);
|
status = fPicture->Unflatten(&stream);
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user