BPicture: Fix archive constructor.
The cleanup commit df48d3f9a839a18e16b3d7036935bef621b4fbb6 broke constructing a BPicture from an archive due to an incomplete rename. The passed in BMessage was used as the data buffer instead of the extracted data field. Fixes the application side crash of #12340. Seeing how long this was broken without anyone noticing, the feature doesn't seem to be very popular.
This commit is contained in:
parent
4176076be1
commit
8b9ec55606
@ -184,7 +184,7 @@ BPicture::BPicture(BMessage* data)
|
|||||||
// TODO: For now. We'll see if it's worth to support old style data
|
// TODO: For now. We'll see if it's worth to support old style data
|
||||||
debugger("old style BPicture data is not supported");
|
debugger("old style BPicture data is not supported");
|
||||||
} else if (version == 1) {
|
} else if (version == 1) {
|
||||||
fExtent->ImportData(data, size);
|
fExtent->ImportData(pictureData, size);
|
||||||
|
|
||||||
// swap_data(fExtent->fNewData, fExtent->fNewSize);
|
// swap_data(fExtent->fNewData, fExtent->fNewSize);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user