The zoom level needed to be reset to 1.0 after loading an image, otherwise it

would keep the zoom level of the previous image in some cases.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21392 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood
2007-06-12 04:02:50 +00:00
parent 5a1210fbef
commit c9f7b3b7d3
+2
View File
@@ -593,6 +593,7 @@ ShowImageView::SetImage(const entry_ref *ref)
fCaption << ", " << fDocumentIndex << "/" << fDocumentCount;
fCaption << ", " << fImageType;
fZoom = 1.0;
AddToRecentDocuments();
@@ -1001,6 +1002,7 @@ ShowImageView::Draw(BRect updateRect)
}
DrawSelectionBox();
}
printf("fZoom is %f\n", fZoom);
}