From 876a4a3cae55f623b85d5427eb69e8bf35120741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 25 Nov 2010 20:50:09 +0000 Subject: [PATCH] * Also call FitToBounds() when you disable stretching, and the image is currently zoomed in. This closes #6857. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39631 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index fd6716b1f8..caf6467b82 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -491,7 +491,7 @@ ShowImageView::SetStretchToBounds(bool enable) if (fStretchToBounds != enable) { _SettingsSetBool("StretchToBounds", enable); fStretchToBounds = enable; - if (enable) + if (enable || fZoom > 1.0) FitToBounds(); } }