From 9494b43adcaf0d0da58f85d6bc0425de4718a07a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 28 Apr 2014 21:25:52 +0200 Subject: [PATCH] Revert attempt to fix stretch-to-window. Turns out the option shouldn't do what I need. Let's add another option. --- 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 f09bc8d660..1a0faa431f 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -1630,7 +1630,7 @@ ShowImageView::FitToBounds() return; float fitToBoundsZoom = _FitToBoundsZoom(); - if (!fStretchToBounds || fitToBoundsZoom > 1.0f) + if (!fStretchToBounds && fitToBoundsZoom > 1.0f) SetZoom(1.0f); else SetZoom(fitToBoundsZoom);