Fixed access to invalid bitmap bug.
Refactored code a little bit. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5746 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1945,6 +1945,10 @@ ShowImageView::DoImageOperation(ImageProcessor::operation op, bool quiet)
|
||||
ImageProcessor imageProcessor(op, fBitmap, msgr, 0);
|
||||
imageProcessor.Start(false);
|
||||
BBitmap* bm = imageProcessor.DetachBitmap();
|
||||
if (bm == NULL) {
|
||||
// operation failed
|
||||
return;
|
||||
}
|
||||
|
||||
// update orientation state
|
||||
if (op != ImageProcessor::kInvert) {
|
||||
|
||||
Reference in New Issue
Block a user