From 3177ae7785dfecd8c95ff446b927d63cbededdab Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 22 Nov 2007 13:05:06 +0000 Subject: [PATCH] small cleanup at the code I looked at git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22979 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageWindow.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index aee7056f25..0701e555fd 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -1097,23 +1097,20 @@ ShowImageWindow::Print(BMessage *msg) BPrintJob printJob(name.String()); printJob.SetSettings(new BMessage(*fPrintSettings)); if (printJob.ConfigJob() == B_OK) { - int32 firstPage; - int32 lastPage; BRect printableRect = printJob.PrintableRect(); - float width, imageWidth, imageHeight, w1, w2; - BBitmap* bitmap; - + float width, w1, w2; + // first/lastPage is unused for now - firstPage = printJob.FirstPage(); - lastPage = printJob.LastPage(); + int32 firstPage = printJob.FirstPage(); + int32 lastPage = printJob.LastPage(); if (firstPage < 1) firstPage = 1; if (lastPage < firstPage) lastPage = firstPage; - bitmap = fImageView->GetBitmap(); - imageWidth = bitmap->Bounds().Width() + 1.0; - imageHeight = bitmap->Bounds().Height() + 1.0; + BBitmap* bitmap = fImageView->GetBitmap(); + float imageWidth = bitmap->Bounds().Width() + 1.0; + float imageHeight = bitmap->Bounds().Height() + 1.0; switch (fPrintOptions.Option()) { case PrintOptions::kFitToPage: