ShowImage: fixes variables declaration.
* Thanks Axel.
This commit is contained in:
@@ -1523,9 +1523,8 @@ ShowImageWindow::_SaveWidthAndHeight()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
BRect bounds = fImageView->Bitmap()->Bounds();
|
BRect bounds = fImageView->Bitmap()->Bounds();
|
||||||
int32 width, height;
|
int32 width = bounds.IntegerWidth() + 1;
|
||||||
width = bounds.IntegerWidth() + 1;
|
int32 height = bounds.IntegerHeight() + 1;
|
||||||
height = bounds.IntegerHeight() + 1;
|
|
||||||
|
|
||||||
BFile file(&fNavigator.CurrentRef(), B_WRITE_ONLY);
|
BFile file(&fNavigator.CurrentRef(), B_WRITE_ONLY);
|
||||||
if (file.InitCheck() != B_OK)
|
if (file.InitCheck() != B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user