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:
@@ -593,6 +593,7 @@ ShowImageView::SetImage(const entry_ref *ref)
|
|||||||
fCaption << ", " << fDocumentIndex << "/" << fDocumentCount;
|
fCaption << ", " << fDocumentIndex << "/" << fDocumentCount;
|
||||||
|
|
||||||
fCaption << ", " << fImageType;
|
fCaption << ", " << fImageType;
|
||||||
|
fZoom = 1.0;
|
||||||
|
|
||||||
AddToRecentDocuments();
|
AddToRecentDocuments();
|
||||||
|
|
||||||
@@ -1001,6 +1002,7 @@ ShowImageView::Draw(BRect updateRect)
|
|||||||
}
|
}
|
||||||
DrawSelectionBox();
|
DrawSelectionBox();
|
||||||
}
|
}
|
||||||
|
printf("fZoom is %f\n", fZoom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user