From c1994be81793e18b7b46c03137a6d765d9267c9f Mon Sep 17 00:00:00 2001 From: Janus Date: Tue, 21 Apr 2015 10:02:11 +0000 Subject: [PATCH] ShowImage: fixes variables declaration. * Thanks Axel. --- src/apps/showimage/ShowImageWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index de12f93825..dc843f86a4 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -1523,9 +1523,8 @@ ShowImageWindow::_SaveWidthAndHeight() return; BRect bounds = fImageView->Bitmap()->Bounds(); - int32 width, height; - width = bounds.IntegerWidth() + 1; - height = bounds.IntegerHeight() + 1; + int32 width = bounds.IntegerWidth() + 1; + int32 height = bounds.IntegerHeight() + 1; BFile file(&fNavigator.CurrentRef(), B_WRITE_ONLY); if (file.InitCheck() != B_OK)