From 29c4d5a9836a33ae8291ff6a65d5eda0ac181c58 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Wed, 19 Aug 2009 02:20:10 +0000 Subject: [PATCH] ShowImage: Using the up and down arrow to change images from a tracker folder, and loading an image bigger than the current window size didn't get the window enlarged. exceptions: the window doesn't get resized by this mean if you check the Shrink to window or Zoom to window settings. Fixes ticket #4273. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32502 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index 13faac3c81..56c57f0318 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -630,6 +630,9 @@ ShowImageWindow::MessageReceived(BMessage *message) if (messageProvidesSize) { _UpdateResizerWindow(fWidth, fHeight); + if (!fImageView->GetZoomToBounds() + && !fImageView->GetShrinkToBounds()) + WindowRedimension(fImageView->GetBitmap()); } fStatusView->SetText(status);