* 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
This commit is contained in:
Axel Dörfler 2010-11-25 20:50:09 +00:00
parent e3ab8648d1
commit 876a4a3cae
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ ShowImageView::SetStretchToBounds(bool enable)
if (fStretchToBounds != enable) {
_SettingsSetBool("StretchToBounds", enable);
fStretchToBounds = enable;
if (enable)
if (enable || fZoom > 1.0)
FitToBounds();
}
}